Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
  • Loading branch information...
commit ffee8739417a5db1d4e32f98fd28fea4c9bc8f42 1 parent 0965d2d
@bnoordhuis bnoordhuis authored
Showing with 4 additions and 1 deletion.
  1. +1 −1  deps/uv/config-unix.mk
  2. +3 −0  wscript
View
2  deps/uv/config-unix.mk
@@ -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
View
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');
Please sign in to comment.
Something went wrong with that request. Please try again.