addon.gypi: define _LARGEFILE_SOURCE, _FILE_OFFSET_BITS

Since as of joyent/node@83e5e20c2c, these are no
longer defined in node's commong.gypi file, so we need to define them here as
well.
This commit is contained in:
Nathan Rajlich 2013-01-20 12:14:35 -08:00
parent ce609ea9e2
commit 019a78369c

View file

@ -17,6 +17,7 @@
'conditions': [
[ 'OS=="mac"', {
'defines': [ '_DARWIN_USE_64_BIT_INODE=1' ],
'libraries': [ '-undefined dynamic_lookup' ],
'xcode_settings': {
'DYLIB_INSTALL_NAME_BASE': '@rpath'
@ -27,6 +28,9 @@
# warning C4251: 'node::ObjectWrap::handle_' : class 'v8::Persistent<T>'
# needs to have dll-interface to be used by clients of class 'node::ObjectWrap'
'msvs_disabled_warnings': [ 4251 ],
}, {
# OS!="win"
'defines': [ '_LARGEFILE_SOURCE', '_FILE_OFFSET_BITS=64' ],
}],
[ 'OS=="freebsd" or OS=="openbsd" or OS=="solaris" or (OS=="linux" and target_arch!="ia32")', {
'cflags': [ '-fPIC' ],