Skip to content

Conversation

brad0
Copy link
Contributor

@brad0 brad0 commented Sep 1, 2025

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Sep 1, 2025

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Brad Smith (brad0)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/156291.diff

1 Files Affected:

  • (modified) compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp (+1)
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
index f5cb85bc1bf30..530ff90c4cd16 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
@@ -29,6 +29,7 @@
 #  include "sanitizer_solaris.h"
 
 #  if SANITIZER_HAIKU
+#    define _GNU_SOURCE
 #    define _DEFAULT_SOURCE
 #  endif
 

@brad0 brad0 requested a review from devnexen September 1, 2025 08:03
@brad0 brad0 merged commit 27c80fb into llvm:main Sep 1, 2025
12 checks passed
@brad0 brad0 deleted the compiler_rt_sanitizer_linux_libcdep branch September 1, 2025 10:06
tru pushed a commit to llvmbot/llvm-project that referenced this pull request Sep 3, 2025
Co-authored-by: Jérôme Duval <jerome.duval@gmail.com>
(cherry picked from commit 27c80fb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants