From 6fb31493d76381bd0e597400da65cbfd33b89ff9 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 19 Dec 2012 15:29:27 +0100 Subject: [PATCH] build: export _POSIX_C_SOURCE=200112 to dependents Fix direct_dependent_settings to export _POSIX_C_SOURCE=200112 to dependent projects. Required to make pthread_rwlock_t and pthread_barrier_t visible. --- uv.gyp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/uv.gyp b/uv.gyp index 9484b35c..5fdccdb7 100644 --- a/uv.gyp +++ b/uv.gyp @@ -31,7 +31,11 @@ 'include_dirs': [ 'include' ], 'conditions': [ ['OS != "win"', { - 'defines': [ '_LARGEFILE_SOURCE', '_FILE_OFFSET_BITS=64' ], + 'defines': [ + '_LARGEFILE_SOURCE', + '_FILE_OFFSET_BITS=64', + '_POSIX_C_SOURCE=200112', + ], }], ['OS == "mac"', { 'defines': [ '_DARWIN_USE_64_BIT_INODE=1' ],