diff --git a/node.gyp b/node.gyp index 84ec69d6b7..82af2fe7ca 100644 --- a/node.gyp +++ b/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': {