From 495ac8340285594aacaab4d9857b4f8eb1aa605c Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 24 Dec 2012 23:34:58 +0100 Subject: [PATCH] build: export _DARWIN_C_SOURCE to dependents Exporting just _POSIX_C_SOURCE=200112 hides SysV / BSD definitions like S_IREAD and S_IWRITE. Exporting _DARWIN_C_SOURCE fixes that. Issue reported by Travis Tilley. --- uv.gyp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/uv.gyp b/uv.gyp index 3e0b2296..5087bd18 100644 --- a/uv.gyp +++ b/uv.gyp @@ -38,7 +38,10 @@ ], }], ['OS == "mac"', { - 'defines': [ '_DARWIN_USE_64_BIT_INODE=1' ], + 'defines': [ + '_DARWIN_USE_64_BIT_INODE=1', + '_DARWIN_C_SOURCE', # _POSIX_C_SOURCE hides SysV definitions. + ], }], ], },