Index: compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h =================================================================== --- compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h +++ compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h @@ -229,7 +229,8 @@ (SI_MAC || SI_LINUX_NOT_ANDROID || SI_SOLARIS) #define SANITIZER_INTERCEPT_CLOCK_GETTIME \ (SI_FREEBSD || SI_NETBSD || SI_LINUX || SI_SOLARIS) -#define SANITIZER_INTERCEPT_CLOCK_GETCPUCLOCKID (SI_LINUX || SI_FREEBSD) +#define SANITIZER_INTERCEPT_CLOCK_GETCPUCLOCKID \ + (SI_LINUX || SI_FREEBSD || SI_NETBSD) #define SANITIZER_INTERCEPT_GETITIMER SI_POSIX #define SANITIZER_INTERCEPT_TIME SI_POSIX #define SANITIZER_INTERCEPT_GLOB (SI_GLIBC || SI_SOLARIS) Index: compiler-rt/test/sanitizer_common/TestCases/Posix/getcpuclockid.c =================================================================== --- compiler-rt/test/sanitizer_common/TestCases/Posix/getcpuclockid.c +++ compiler-rt/test/sanitizer_common/TestCases/Posix/getcpuclockid.c @@ -1,6 +1,6 @@ // RUN: %clang -pthread %s -Wl,-as-needed -o %t && %run %t // -// UNSUPPORTED: darwin, netbsd, solaris +// UNSUPPORTED: darwin, solaris #include #include