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 15:36:15 -0700
commit606a9339891a68144c6047356480f199ce04ae4c (patch)
tree1b04f6404be0d90de9db8e8af21472337f2e3386 /node.gyp
parent4784ea1a29dc4bace1c9a20f9f6a6376a7eecb7d (diff)
downloadnode-new-606a9339891a68144c6047356480f199ce04ae4c.tar.gz
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 5675045aae..45abb27ca2 100644
--- a/node.gyp
+++ b/node.gyp
@@ -227,6 +227,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': {