[sanitizer_common] Updated build fix for newer NetBSD (#134742)

Co-authored-by: Thomas Klausner <wiz@gatalith.at>
This commit is contained in:
Brad Smith
2025-04-18 18:29:06 -04:00
committed by GitHub
parent 59eafd1bdc
commit 15ea45b100

View File

@@ -34,11 +34,12 @@
# if SANITIZER_NETBSD
# // for __lwp_gettcb_fast() / __lwp_getprivate_fast()
# define _RTLD_SOURCE
# include <machine/mcontext.h>
# undef _RTLD_SOURCE
# include <sys/param.h>
# if defined(__NetBSD_Version__) && (__NetBSD_Version__ >= 1099001200)
# if __NetBSD_Version__ >= 1099001200
# include <machine/lwp_private.h>
# else
# define _RTLD_SOURCE
# endif
# endif