diff --git a/src/util/futex.h b/src/util/futex.h index 31e56b916ff..b7ce0884155 100644 --- a/src/util/futex.h +++ b/src/util/futex.h @@ -24,6 +24,9 @@ #ifndef UTIL_FUTEX_H #define UTIL_FUTEX_H +#if THREAD_SANITIZER +#define UTIL_FUTEX_SUPPORTED 0 +#else #if defined(HAVE_LINUX_FUTEX_H) && defined(__linux__) #define UTIL_FUTEX_SUPPORTED 1 #elif defined(__FreeBSD__) @@ -35,6 +38,7 @@ #else #define UTIL_FUTEX_SUPPORTED 0 #endif +#endif #if UTIL_FUTEX_SUPPORTED #include