This repository has been archived by the owner. It is now read-only.
Permalink
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...
TooTallNate committed Aug 29, 2012
1 parent a57d315 commit 355c14842734e790a2581b9db58041c7ca54edf9
Showing with 8 additions and 0 deletions.
  1. +8 −0 node.gyp
View
@@ -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': {

0 comments on commit 355c148

Please sign in to comment.