Skip to content


Subversion checkout URL

You can clone with
Download ZIP
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...
commit 8bed0a33fe8a2146aad4c72f5390687fe77cd96d 1 parent 1e34c85
@bnoordhuis bnoordhuis authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 wscript
5 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.
Something went wrong with that request. Please try again.