diff --git a/uv.gyp b/uv.gyp index de68a38f..b0566240 100644 --- a/uv.gyp +++ b/uv.gyp @@ -210,7 +210,19 @@ 'libraries': [ '-lrt' ], }, }], - # TODO add OS=='sun' + [ 'OS=="solaris"', { + 'include_dirs': [ 'src/ares/config_sunos' ], + 'sources': [ 'src/unix/sunos.c' ], + 'defines': [ + '__EXTENSIONS__', + '_XOPEN_SOURCE=500', + 'EV_CONFIG_H="config_sunos.h"', + 'EIO_CONFIG_H="config_sunos.h"', + ], + 'direct_dependent_settings': { + 'libraries': [ '-lrt' ], + }, + }], ] },