Skip to content

Commit 15ea45b

Browse files
brad00-wiz-0
andauthored
[sanitizer_common] Updated build fix for newer NetBSD (#134742)
Co-authored-by: Thomas Klausner <wiz@gatalith.at>
1 parent 59eafd1 commit 15ea45b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@
3434

3535
# if SANITIZER_NETBSD
3636
# // for __lwp_gettcb_fast() / __lwp_getprivate_fast()
37+
# define _RTLD_SOURCE
38+
# include <machine/mcontext.h>
39+
# undef _RTLD_SOURCE
3740
# include <sys/param.h>
38-
# if defined(__NetBSD_Version__) && (__NetBSD_Version__ >= 1099001200)
41+
# if __NetBSD_Version__ >= 1099001200
3942
# include <machine/lwp_private.h>
40-
# else
41-
# define _RTLD_SOURCE
4243
# endif
4344
# endif
4445

0 commit comments

Comments
 (0)