Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
  • Loading branch information...
commit 606a9339891a68144c6047356480f199ce04ae4c 1 parent 4784ea1
@TooTallNate TooTallNate authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 node.gyp
View
8 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': {
Please sign in to comment.
Something went wrong with that request. Please try again.