summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorNathan Rajlich <nathan@tootallnate.net>2012-08-29 14:57:25 -0700
committerNathan Rajlich <nathan@tootallnate.net>2012-08-29 16:12:59 -0700
commit355c14842734e790a2581b9db58041c7ca54edf9 (patch)
tree08e742f39db9680acef61edbec587c1380ff347b /node.gyp
parenta57d31595d842b7f250d06e14c58340d5c4c453e (diff)
downloadnodejs-355c14842734e790a2581b9db58041c7ca54edf9.tar.gz
nodejs-355c14842734e790a2581b9db58041c7ca54edf9.tar.bz2
nodejs-355c14842734e790a2581b9db58041c7ca54edf9.zip
build: set `process.platform` to "sunos" on SunOS
gyp sets it to "solaris" by default, but versions of node v0.6.x and older would report "sunos". Let's keep things consistent. Fixes #3944.
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp8
1 files changed, 8 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index 84ec69d6b..82af2fe7c 100644
--- a/node.gyp
+++ b/node.gyp
@@ -228,6 +228,14 @@
'-lkstat',
'-lumem',
],
+ 'defines!': [
+ 'PLATFORM="solaris"',
+ ],
+ 'defines': [
+ # we need to use node's preferred "sunos"
+ # rather than gyp's preferred "solaris"
+ 'PLATFORM="sunos"',
+ ],
}],
],
'msvs-settings': {