diff --git a/deps/uv/config-unix.mk b/deps/uv/config-unix.mk index 8fe7254cfdd..ca1b1453e37 100644 --- a/deps/uv/config-unix.mk +++ b/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 diff --git a/wscript b/wscript index 2b04358559a..a63db7d3aeb 100644 --- a/wscript +++ b/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');