diff --git a/sys-devel/llvm/patches/llvm20-20.1.0.patchset b/sys-devel/llvm/patches/llvm20-20.1.0.patchset index 888ef6e9f..88f5081ad 100644 --- a/sys-devel/llvm/patches/llvm20-20.1.0.patchset +++ b/sys-devel/llvm/patches/llvm20-20.1.0.patchset @@ -370,7 +370,7 @@ index a1e9eca..cc563d7 100644 2.45.2 -From fe2ce5b227045fa7431fa1974506b983127b982a Mon Sep 17 00:00:00 2001 +From 8e4dcdc6b46688e5067bef2bdc07a81d932af3ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Thu, 6 Feb 2025 21:08:43 +0100 Subject: Haiku: Address sanitizer on x86_64 @@ -505,21 +505,22 @@ index cf729c3..e3310b1 100644 else() set(COMPILER_RT_HAS_UBSAN FALSE) diff --git a/compiler-rt/lib/asan/asan_linux.cpp b/compiler-rt/lib/asan/asan_linux.cpp -index 4cabca3..6fcd4e0 100644 +index 4cabca3..b047eec 100644 --- a/compiler-rt/lib/asan/asan_linux.cpp +++ b/compiler-rt/lib/asan/asan_linux.cpp -@@ -12,8 +12,9 @@ +@@ -12,8 +12,10 @@ //===----------------------------------------------------------------------===// #include "sanitizer_common/sanitizer_platform.h" +#define _DEFAULT_SOURCE 1 ++#define _GNU_SOURCE 1 #if SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_NETBSD || \ - SANITIZER_SOLARIS + SANITIZER_SOLARIS || SANITIZER_HAIKU # include # include -@@ -22,7 +23,9 @@ +@@ -22,7 +24,9 @@ # include # include # include @@ -529,7 +530,7 @@ index 4cabca3..6fcd4e0 100644 # include # include # include -@@ -37,7 +40,7 @@ +@@ -37,7 +41,7 @@ # include "sanitizer_common/sanitizer_libc.h" # include "sanitizer_common/sanitizer_procmaps.h" @@ -538,7 +539,7 @@ index 4cabca3..6fcd4e0 100644 # include # endif -@@ -45,8 +48,12 @@ +@@ -45,8 +49,12 @@ # include # endif @@ -552,7 +553,7 @@ index 4cabca3..6fcd4e0 100644 # elif SANITIZER_NETBSD # include # include -@@ -125,6 +132,12 @@ static int FindFirstDSOCallback(struct dl_phdr_info *info, size_t size, +@@ -125,6 +133,12 @@ static int FindFirstDSOCallback(struct dl_phdr_info *info, size_t size, return 0; }