From 6221904013b01e94440358502540e1f89d695045 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 2 Oct 2011 00:14:44 +0000 Subject: [PATCH] sunos: fix gyp build --- test/test-fs.c | 2 +- uv.gyp | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/test/test-fs.c b/test/test-fs.c index dfc373b65..d5e7e2915 100644 --- a/test/test-fs.c +++ b/test/test-fs.c @@ -1260,4 +1260,4 @@ TEST_IMPL(fs_stat_missing_path) { uv_fs_req_cleanup(&req); return 0; -} \ No newline at end of file +} diff --git a/uv.gyp b/uv.gyp index dc4338dd3..3377c9de3 100644 --- a/uv.gyp +++ b/uv.gyp @@ -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': {