Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
build: define _DARWIN_USE_64_BIT_INODE=1 on OS X
Browse files Browse the repository at this point in the history
Fixes a segmentation fault on some OS X systems due to sizeof(struct stat)
mismatches.
  • Loading branch information
bnoordhuis committed Apr 2, 2012
1 parent 1795427 commit 9c8f6dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config-unix.mk
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions uv.gyp
Expand Up @@ -208,6 +208,7 @@
],
},
'defines': [
'_DARWIN_USE_64_BIT_INODE=1',
'EV_CONFIG_H="config_darwin.h"',
'EIO_CONFIG_H="config_darwin.h"',
]
Expand Down

0 comments on commit 9c8f6dd

Please sign in to comment.