diff options
author | Sergey Matveev <earthdok@google.com> | 2013-07-01 10:15:29 +0000 |
---|---|---|
committer | Sergey Matveev <earthdok@google.com> | 2013-07-01 10:15:29 +0000 |
commit | 5d2104281930f0c1af3d586d950e2878cd1a16e1 (patch) | |
tree | d31f8eb6d6ef23dc37fc45f411e3211f233f19a5 /lib/sanitizer_common/sanitizer_linux_libcdep.cc | |
parent | 997aede5a27c48d0b1a086212b24cb6101fb8351 (diff) | |
download | compiler-rt-5d2104281930f0c1af3d586d950e2878cd1a16e1.tar.gz compiler-rt-5d2104281930f0c1af3d586d950e2878cd1a16e1.tar.bz2 compiler-rt-5d2104281930f0c1af3d586d950e2878cd1a16e1.tar.xz |
[sanitizer] Use the correct macro to check glibc version.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_linux_libcdep.cc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_linux_libcdep.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_linux_libcdep.cc b/lib/sanitizer_common/sanitizer_linux_libcdep.cc index fe8e67d3..239df352 100644 --- a/lib/sanitizer_common/sanitizer_linux_libcdep.cc +++ b/lib/sanitizer_common/sanitizer_linux_libcdep.cc @@ -197,7 +197,7 @@ uptr GetTlsSize() { // sizeof(struct thread) from glibc. // There has been a report of this being different on glibc 2.11. We don't know // when this change happened, so 2.12 is a conservative estimate. -#if __GNUC_PREREQ(2, 12) +#if __GLIBC_PREREQ(2, 12) const uptr kThreadDescriptorSize = FIRST_32_SECOND_64(1216, 2304); #else const uptr kThreadDescriptorSize = FIRST_32_SECOND_64(1168, 2304); |