OpenBSD has removed the syscall() function from its libc, so we

need to use getthrid() directly in lib/bcheck.c
This commit is contained in:
Brian Callahan 2023-02-23 17:19:37 -05:00
parent 605538f46d
commit 29ae3ed4d5

View File

@ -225,7 +225,7 @@ typedef struct alloca_list_struct {
#define BOUND_GET_TID(id) id = GetCurrentThreadId()
#elif defined(__OpenBSD__)
#define BOUND_TID_TYPE pid_t
#define BOUND_GET_TID(id) id = syscall (SYS_getthrid)
#define BOUND_GET_TID(id) id = getthrid()
#elif defined(__FreeBSD__)
#define BOUND_TID_TYPE pid_t
#define BOUND_GET_TID(id) syscall (SYS_thr_self, &id)