Uncomment part of sanitizer patch, from <doko>

This commit is contained in:
Gianfranco Costamagna 2024-03-11 22:49:01 +01:00
parent 518f0fa5b4
commit 3d4b64df99
2 changed files with 17 additions and 10 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
llvm-toolchain-16 (1:16.0.6-23) unstable; urgency=medium
[ Matthias Klose ]
* Fix sanitizer build on 32bit time_t64 architectures.
-- Gianfranco Costamagna <locutusofborg@debian.org> Mon, 11 Mar 2024 22:48:48 +0100
llvm-toolchain-16 (1:16.0.6-22) unstable; urgency=medium
[ Gianfranco Costamagna ]

View File

@ -10,13 +10,13 @@
#include "sanitizer_platform.h"
#if SANITIZER_SOLARIS
# include <fcntl.h>
#--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
#+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
#@@ -18,6 +18,7 @@
# // depends on _FILE_OFFSET_BITS setting.
# // To get this "true" dirent definition, we undefine _FILE_OFFSET_BITS below.
# #undef _FILE_OFFSET_BITS
#+#undef _TIME_BITS
# #endif
#
# // Must go after undef _FILE_OFFSET_BITS.
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
@@ -18,6 +18,7 @@
// depends on _FILE_OFFSET_BITS setting.
// To get this "true" dirent definition, we undefine _FILE_OFFSET_BITS below.
#undef _FILE_OFFSET_BITS
+#undef _TIME_BITS
#endif
// Must go after undef _FILE_OFFSET_BITS.