libuv changes don't work with Electron
diff --git a/binding.gyp b/binding.gyp
index 92360a4..141104a 100644
--- a/binding.gyp
+++ b/binding.gyp
@@ -46,10 +46,14 @@
'include'
],
'defines': [
- 'GPR_BACKWARDS_COMPATIBILITY_MODE',
- 'GRPC_UV'
+ 'GPR_BACKWARDS_COMPATIBILITY_MODE'
],
'conditions': [
+ ['runtime=="node"', {
+ 'defines': [
+ 'GRPC_UV'
+ ]
+ }],
# This is the condition for using boringssl
['OS=="win" or runtime=="electron"', {
"include_dirs": [
diff --git a/templates/binding.gyp.template b/templates/binding.gyp.template
index 2fc840d..9b9e4e1 100644
--- a/templates/binding.gyp.template
+++ b/templates/binding.gyp.template
@@ -48,10 +48,14 @@
'include'
],
'defines': [
- 'GPR_BACKWARDS_COMPATIBILITY_MODE',
- 'GRPC_UV'
+ 'GPR_BACKWARDS_COMPATIBILITY_MODE'
],
'conditions': [
+ ['runtime=="node"', {
+ 'defines': [
+ 'GRPC_UV'
+ ]
+ }],
# This is the condition for using boringssl
['OS=="win" or runtime=="electron"', {
"include_dirs": [