Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
sunos: fix gyp build
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Oct 2, 2011
1 parent 914a6fa commit 6221904
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/test-fs.c
Expand Up @@ -1260,4 +1260,4 @@ TEST_IMPL(fs_stat_missing_path) {
uv_fs_req_cleanup(&req);

return 0;
}
}
13 changes: 11 additions & 2 deletions uv.gyp
Expand Up @@ -215,7 +215,10 @@
'EIO_CONFIG_H="config_sunos.h"',
],
'direct_dependent_settings': {
'libraries': [ '-lrt' ],
'libraries': [
'-lsocket',
'-lnsl',
],
},
}],
[ 'OS=="freebsd"', {
Expand Down Expand Up @@ -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': {
Expand Down

0 comments on commit 6221904

Please sign in to comment.