sunos: fix gyp build

This commit is contained in:
Ben Noordhuis 2011-10-02 00:14:44 +00:00
parent 914a6fa241
commit 6221904013
2 changed files with 12 additions and 3 deletions

13
uv.gyp
View File

@ -215,7 +215,10 @@
'EIO_CONFIG_H="config_sunos.h"',
],
'direct_dependent_settings': {
'libraries': [ '-lrt' ],
'libraries': [
'-lsocket',
'-lnsl',
],
},
}],
[ 'OS=="freebsd"', {
@ -287,7 +290,13 @@
'test/runner-unix.c',
'test/runner-unix.h',
]
}]
}],
[ 'OS=="solaris"', { # make test-fs.c compile, needs _POSIX_C_SOURCE
'defines': [
'__EXTENSIONS__',
'_XOPEN_SOURCE=500',
],
}],
],
'msvs-settings': {
'VCLinkerTool': {