build: don't export _POSIX_C_SOURCE on non-linux
Don't export _POSIX_C_SOURCE to dependents. On the BSDs (and the BSD-ish, like OS X), it hides SysV and BSD definitions. The exception is Linux: _POSIX_C_SOURCE=200112 unlocks some of the newer pthreads features like spinlocks and barriers, so keep exporting it on that platform.
This commit is contained in:
parent
bdb498f8b1
commit
7841f77b2e
9
uv.gyp
9
uv.gyp
@ -34,14 +34,13 @@
|
||||
'defines': [
|
||||
'_LARGEFILE_SOURCE',
|
||||
'_FILE_OFFSET_BITS=64',
|
||||
'_POSIX_C_SOURCE=200112',
|
||||
],
|
||||
}],
|
||||
['OS == "mac"', {
|
||||
'defines': [
|
||||
'_DARWIN_USE_64_BIT_INODE=1',
|
||||
'_DARWIN_C_SOURCE', # _POSIX_C_SOURCE hides SysV definitions.
|
||||
],
|
||||
'defines': [ '_DARWIN_USE_64_BIT_INODE=1' ],
|
||||
}],
|
||||
['OS == "linux"', {
|
||||
'defines': [ '_POSIX_C_SOURCE=200112' ],
|
||||
}],
|
||||
],
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user