Skip to content
This repository has been archived by the owner. It is now read-only.
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.

Fixes #2061. Solution proposed by Paddy Byers.
  • Loading branch information...
bnoordhuis committed Nov 18, 2011
1 parent 1e34c85 commit 8bed0a33fe8a2146aad4c72f5390687fe77cd96d
Showing with 5 additions and 0 deletions.
  1. +5 −0 wscript
@@ -461,6 +461,11 @@ def configure(conf):
conf.env.append_value('CPPFLAGS', '-D_LARGEFILE_SOURCE')
conf.env.append_value('CPPFLAGS', '-D_FILE_OFFSET_BITS=64')

# Apparently _LARGEFILE_SOURCE and _FILE_OFFSET_BITS isn't always enough
# on OS X, see for details.
if sys.platform.startswith('darwin'):
conf.env.append_value('CPPFLAGS', '-D__DARWIN_64_BIT_INO_T=1')

# Makes select on windows support more than 64 FDs
if sys.platform.startswith("win32"):
conf.env.append_value('CPPFLAGS', '-DFD_SETSIZE=1024');

0 comments on commit 8bed0a3

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