diff --git a/packages/grpc-native-core/binding.gyp b/packages/grpc-native-core/binding.gyp index 6c0a986d..b11c7611 100644 --- a/packages/grpc-native-core/binding.gyp +++ b/packages/grpc-native-core/binding.gyp @@ -118,11 +118,6 @@ 'GPR_MUSL_LIBC_COMPAT' ] }], - ['OS!="win" and runtime=="electron"', { - "defines": [ - 'OPENSSL_NO_THREADS' - ] - }], # This is the condition for using boringssl ['OS=="win" or runtime=="electron"', { "include_dirs": [ @@ -228,6 +223,9 @@ 'cflags': [ '-Wno-implicit-fallthrough' ], + 'defines': [ + '_XOPEN_SOURCE=700' + ], 'dependencies': [ ], 'sources': [ diff --git a/packages/grpc-native-core/templates/binding.gyp.template b/packages/grpc-native-core/templates/binding.gyp.template index f9abaa7c..8addf14a 100644 --- a/packages/grpc-native-core/templates/binding.gyp.template +++ b/packages/grpc-native-core/templates/binding.gyp.template @@ -102,11 +102,6 @@ 'GPR_MUSL_LIBC_COMPAT' ] }], - ['OS!="win" and runtime=="electron"', { - "defines": [ - 'OPENSSL_NO_THREADS' - ] - }], # This is the condition for using boringssl ['OS=="win" or runtime=="electron"', { "include_dirs": [ @@ -200,6 +195,9 @@ 'cflags': [ '-Wno-implicit-fallthrough' ], + 'defines': [ + '_XOPEN_SOURCE=700' + ], 'dependencies': [ % for dep in getattr(lib, 'deps', []): '${dep}',