--- node-v15.5.1/src/node_process_object.cc.orig 2021-01-04 14:19:54.000000000 +0000 +++ node-v15.5.1/src/node_process_object.cc 2021-01-13 14:30:42.835547052 +0000 @@ -66,7 +66,11 @@ static void GetParentProcessId(Local property, const PropertyCallbackInfo& info) { - info.GetReturnValue().Set(uv_os_getppid()); +#if defined(__sun__) + info.GetReturnValue().Set(static_cast(uv_os_getppid())); +#else + info.GetReturnValue().Set(uv_os_getppid()); +#endif } MaybeLocal CreateProcessObject(Environment* env) {