build: compile with -D__DARWIN_64_BIT_INO_T on OS X
authorBen Noordhuis <info@bnoordhuis.nl>
Fri, 25 Nov 2011 15:49:52 +0000 (16:49 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Fri, 25 Nov 2011 15:53:38 +0000 (16:53 +0100)
Fixes a struct stat size mismatch on 64 bits machines that made Node crash with
a EXC_BAD_ACCESS on startup.

Fixes #2061 for gyp builds. Solution proposed by Paddy Byers.

common.gypi

index 0a4183b..6c1851a 100644 (file)
         ],
       }],
       ['OS=="mac"', {
+        'defines': ['__DARWIN_64_BIT_INO_T=1'],
         'xcode_settings': {
           'ALWAYS_SEARCH_USER_PATHS': 'NO',
           'GCC_CW_ASM_SYNTAX': 'NO',                # No -fasm-blocks