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()
|
#define BOUND_GET_TID(id) id = GetCurrentThreadId()
|
||||||
#elif defined(__OpenBSD__)
|
#elif defined(__OpenBSD__)
|
||||||
#define BOUND_TID_TYPE pid_t
|
#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__)
|
#elif defined(__FreeBSD__)
|
||||||
#define BOUND_TID_TYPE pid_t
|
#define BOUND_TID_TYPE pid_t
|
||||||
#define BOUND_GET_TID(id) syscall (SYS_thr_self, &id)
|
#define BOUND_GET_TID(id) syscall (SYS_thr_self, &id)
|
||||||
|
|
Loading…
Add table
Reference in a new issue