From 606a9339891a68144c6047356480f199ce04ae4c Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Wed, 29 Aug 2012 14:57:25 -0700 Subject: [PATCH] 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. --- node.gyp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/node.gyp b/node.gyp index 5675045..45abb27 100644 --- a/node.gyp +++ b/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': { -- 2.7.4