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.
This commit is contained in:
Ben Noordhuis 2012-12-24 23:34:58 +01:00
parent 4650a5971b
commit 495ac83402

5
uv.gyp
View File

@ -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.
],
}],
],
},