From 9c8f6dd4f9367c569b63a41b2f652a9baaca177b Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 2 Apr 2012 23:44:36 +0200 Subject: [PATCH] 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. --- config-unix.mk | 2 +- uv.gyp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config-unix.mk b/config-unix.mk index 8fe7254c..ca1b1453 100644 --- a/config-unix.mk +++ b/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/uv.gyp b/uv.gyp index 8151878f..0b33b114 100644 --- a/uv.gyp +++ b/uv.gyp @@ -208,6 +208,7 @@ ], }, 'defines': [ + '_DARWIN_USE_64_BIT_INODE=1', 'EV_CONFIG_H="config_darwin.h"', 'EIO_CONFIG_H="config_darwin.h"', ]