mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-26 03:50:07 +08:00
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
@ -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 New Issue
Block a user