about summary refs log tree commit diff
path: root/absl/base/policy_checks.h
diff options
context:
space:
mode:
Diffstat (limited to 'absl/base/policy_checks.h')
-rw-r--r--absl/base/policy_checks.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/base/policy_checks.h b/absl/base/policy_checks.h
index d634dac68dcf..0a07fc035e15 100644
--- a/absl/base/policy_checks.h
+++ b/absl/base/policy_checks.h
@@ -86,7 +86,7 @@
 // in May, 2010 and includes some functionality used in Google software
 // (for instance pthread_setname_np):
 // https://sourceware.org/ml/libc-alpha/2010-05/msg00000.html
-#ifdef __GLIBC_PREREQ
+#if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
 #if !__GLIBC_PREREQ(2, 12)
 #error "Minimum required version of glibc is 2.12."
 #endif