diff options
author | Nathan Rajlich <nathan@tootallnate.net> | 2012-08-29 14:57:25 -0700 |
---|---|---|
committer | Nathan Rajlich <nathan@tootallnate.net> | 2012-08-29 15:36:15 -0700 |
commit | 606a9339891a68144c6047356480f199ce04ae4c (patch) | |
tree | 1b04f6404be0d90de9db8e8af21472337f2e3386 /node.gyp | |
parent | 4784ea1a29dc4bace1c9a20f9f6a6376a7eecb7d (diff) | |
download | node-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.gyp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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': { |