Browse Source

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.9-release
Nathan Rajlich 13 years ago
parent
commit
355c148427
  1. 8
      node.gyp

8
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': {

Loading…
Cancel
Save