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 355c14842734e790a2581b9db58041c7ca54edf9 1 parent a57d315
@TooTallNate TooTallNate authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 node.gyp
View
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': {
Please sign in to comment.
Something went wrong with that request. Please try again.