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:
parent
605538f46d
commit
29ae3ed4d5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue