--- libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc.orig 2014-05-22 07:09:21 UTC +++ libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc @@ -9,13 +9,13 @@ // //===----------------------------------------------------------------------===// -#if SANITIZER_FREEBSD +#if SANITIZER_FREEBSD || SANITIZER_BSDSUNIX # define SYSCALL(name) SYS_ ## name #else # define SYSCALL(name) __NR_ ## name #endif -#if SANITIZER_FREEBSD && defined(__x86_64__) +#if (SANITIZER_FREEBSD || SANITIZER_BSDSUNIX) && defined(__x86_64__) # define internal_syscall __syscall # else # define internal_syscall syscall