[compiler-rt] [sanitizer_common] Fix building with NetBSD 10.99.12 or newer (PR #134708)

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 7 12:10:57 PDT 2025


================
@@ -29,7 +29,13 @@
 #  include "sanitizer_solaris.h"
 
 #  if SANITIZER_NETBSD
-#    define _RTLD_SOURCE  // for __lwp_gettcb_fast() / __lwp_getprivate_fast()
+#    // for __lwp_gettcb_fast() / __lwp_getprivate_fast()
+#    include <sys/param.h>
----------------
thurstond wrote:

Can this be moved under the if condition, since it didn't seem to be needed for older NetBSD versions?

https://github.com/llvm/llvm-project/pull/134708


More information about the llvm-commits mailing list