[all-commits] [llvm/llvm-project] 26800a: [sanitizer] Undef _TIME_BITS along with _FILE_OFFS...
Khem Raj via All-commits
all-commits at lists.llvm.org
Fri Feb 3 11:48:47 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 26800a2c7e7996dc773b4e990dd5cca41c45e1a9
https://github.com/llvm/llvm-project/commit/26800a2c7e7996dc773b4e990dd5cca41c45e1a9
Author: Khem Raj <raj.khem at gmail.com>
Date: 2023-02-03 (Fri, 03 Feb 2023)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
Log Message:
-----------
[sanitizer] Undef _TIME_BITS along with _FILE_OFFSET_BITS on Linux
On 32-bit glibc>=2.34 systems using 64bit time_t build fails because
_FILE_OFFSET_BITS is undefined here but _TIME_BITS is still set to 64
Fixes
```
/usr/include/features-time64.h:26:5: error: "_TIME_BITS=64 is allowed
only with _FILE_OFFSET_BITS=64"
| # error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
| ^
| 1 error generated.
```
Reviewed By: thesamesam, MaskRay
Differential Revision: https://reviews.llvm.org/D140812
More information about the All-commits
mailing list