From: Konstantin Serebryany <konstantin.s.serebry...@gmail.com> Date: Tue, 20 Nov 2012 11:41:03 +0400
> Ok. Will this work? > > // Are we using 32-bit or 64-bit syscalls? > // x32 (which defines __x86_64__) has __WORDSIZE == 32 > // but it still needs to use 64-bit syscalls. > #if defined(__x86_64__) || __WORDSIZE == 64 > # define SANITIZER_LINUX_USES_64BIT_SYSCALLS 1 > #else > # define SANITIZER_LINUX_USES_64BIT_SYSCALLS 0 > #endif Of course, as it matches the test H.J. Liu's patch used. Please, at a bare minimum, give him some credit for this fix.