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.
This commit is contained in:
Ben Noordhuis 2012-12-19 15:29:27 +01:00
parent 0820be7008
commit 6fb31493d7

6
uv.gyp
View File

@ -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' ],