Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

build: compile with -D__DARWIN_64_BIT_INO_T on OS X

Fixes a struct stat size mismatch on 64 bits machines that made Node crash with
a EXC_BAD_ACCESS on startup.

Solution proposed by Paddy Byers.
  • Loading branch information...
bnoordhuis committed Nov 18, 2011
1 parent 2bd181a commit 01fbe7bf37909736b4ba99d30c34378f561d6761
Showing with 4 additions and 0 deletions.
  1. +1 −0 config-unix.mk
  2. +3 −0 uv.gyp
@@ -50,6 +50,7 @@ endif
ifeq (Darwin,$(uname_S))
EV_CONFIG=config_darwin.h
EIO_CONFIG=config_darwin.h
CPPFLAGS += -D__DARWIN_64_BIT_INO_T=1
CPPFLAGS += -Isrc/ares/config_darwin
LINKFLAGS+=-framework CoreServices
OBJS += src/unix/darwin.o
3 uv.gyp
@@ -9,6 +9,9 @@
'EIO_STACKSIZE=262144'
],
'conditions': [
['OS=="mac"', {
'defines': ['__DARWIN_64_BIT_INO_T=1'],
}],
['OS=="solaris"', {
'cflags': ['-pthreads'],
'ldlags': ['-pthreads'],

0 comments on commit 01fbe7b

Please sign in to comment.
You can’t perform that action at this time.