diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp --- a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp +++ b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp @@ -41,7 +41,7 @@ #if defined(__GLIBC__) && __has_include() && defined(HAVE_BUILTIN_THREAD_POINTER) #include -#ifdef RSEQ_SIG +#if defined(RSEQ_SIG) && defined(SYS_rseq) #define GLIBC_INITS_RSEQ #endif #endif