From 1cf13bca1950723cb58400288d2e5a7ebc3b2257 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 25 Nov 2011 16:49:52 +0100 Subject: [PATCH] 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 for gyp builds. Solution proposed by Paddy Byers. --- common.gypi | 1 + 1 file changed, 1 insertion(+) diff --git a/common.gypi b/common.gypi index 0a4183b1c9..6c1851a2b6 100644 --- a/common.gypi +++ b/common.gypi @@ -128,6 +128,7 @@ ], }], ['OS=="mac"', { + 'defines': ['__DARWIN_64_BIT_INO_T=1'], 'xcode_settings': { 'ALWAYS_SEARCH_USER_PATHS': 'NO', 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks