build: define _DARWIN_USE_64_BIT_INODE=1 on OS X
Fixes a segmentation fault on some OS X systems due to sizeof(struct stat) mismatches. Fixes #2061.
This commit is contained in:
parent
0965d2d9f6
commit
ffee873941
2
deps/uv/config-unix.mk
vendored
2
deps/uv/config-unix.mk
vendored
@ -50,7 +50,7 @@ endif
|
||||
ifeq (Darwin,$(uname_S))
|
||||
EV_CONFIG=config_darwin.h
|
||||
EIO_CONFIG=config_darwin.h
|
||||
CPPFLAGS += -Isrc/ares/config_darwin
|
||||
CPPFLAGS += -D_DARWIN_USE_64_BIT_INODE=1 -Isrc/ares/config_darwin
|
||||
LINKFLAGS+=-framework CoreServices
|
||||
OBJS += src/unix/darwin.o
|
||||
OBJS += src/unix/kqueue.o
|
||||
|
3
wscript
3
wscript
@ -469,6 +469,9 @@ def configure(conf):
|
||||
conf.env.append_value('CPPFLAGS', '-D_LARGEFILE_SOURCE')
|
||||
conf.env.append_value('CPPFLAGS', '-D_FILE_OFFSET_BITS=64')
|
||||
|
||||
if sys.platform.startswith('darwin'):
|
||||
conf.env.append_value('CPPFLAGS', '-D_DARWIN_USE_64_BIT_INODE=1')
|
||||
|
||||
# Makes select on windows support more than 64 FDs
|
||||
if sys.platform.startswith("win32"):
|
||||
conf.env.append_value('CPPFLAGS', '-DFD_SETSIZE=1024');
|
||||
|
Loading…
x
Reference in New Issue
Block a user