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.
v0.8.16-release
Nathan Rajlich 2012-08-29 14:57:25 -07:00
parent a57d31595d
commit 355c148427
1 changed files with 8 additions and 0 deletions

View File

@ -228,6 +228,14 @@
'-lkstat', '-lkstat',
'-lumem', '-lumem',
], ],
'defines!': [
'PLATFORM="solaris"',
],
'defines': [
# we need to use node's preferred "sunos"
# rather than gyp's preferred "solaris"
'PLATFORM="sunos"',
],
}], }],
], ],
'msvs-settings': { 'msvs-settings': {