diff options
author | Nathan Rajlich <nathan@tootallnate.net> | 2012-08-29 14:57:25 -0700 |
---|---|---|
committer | Nathan Rajlich <nathan@tootallnate.net> | 2012-08-29 16:12:59 -0700 |
commit | 355c14842734e790a2581b9db58041c7ca54edf9 (patch) | |
tree | 08e742f39db9680acef61edbec587c1380ff347b /node.gyp | |
parent | a57d31595d842b7f250d06e14c58340d5c4c453e (diff) | |
download | nodejs-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.gyp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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': { |