Permalink
Browse files

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.
  • Loading branch information...
1 parent 4650a59 commit 495ac8340285594aacaab4d9857b4f8eb1aa605c @bnoordhuis bnoordhuis committed Dec 24, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 uv.gyp
View
5 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.
+ ],
}],
],
},

0 comments on commit 495ac83

Please sign in to comment.