We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19dbde0 commit 9fdac84Copy full SHA for 9fdac84
compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
@@ -29,7 +29,13 @@
29
# include "sanitizer_solaris.h"
30
31
# if SANITIZER_NETBSD
32
-# define _RTLD_SOURCE // for __lwp_gettcb_fast() / __lwp_getprivate_fast()
+# // for __lwp_gettcb_fast() / __lwp_getprivate_fast()
33
+# include <sys/param.h>
34
+# if defined(__NetBSD_Version__) && (__NetBSD_Version__ >= 1099001200)
35
+# include <machine/lwp_private.h>
36
+# else
37
+# define _RTLD_SOURCE
38
+# endif
39
# endif
40
41
# include <dlfcn.h> // for dlsym()
0 commit comments