History

OpenBSD has removed the syscall() function from its libc, so we need to use getthrid() directly in lib/bcheck.c

Brian Callahan committed 3 years ago

Commit 29ae3ed1 parent 605538f1 file · +1 −1Browse files

Unified · Split

lib/bcheck.c+1−1
@@ -225,7 +225,7 @@ typedef struct alloca_list_struct { · 224 unmodified lines
225#define BOUND_GET_TID(id) id = GetCurrentThreadId()225#define BOUND_GET_TID(id) id = GetCurrentThreadId()
226#elif defined(__OpenBSD__)226#elif defined(__OpenBSD__)
227#define BOUND_TID_TYPE pid_t227#define BOUND_TID_TYPE pid_t
228#define BOUND_GET_TID(id) id = syscall (SYS_getthrid)228#define BOUND_GET_TID(id) id = getthrid()
229#elif defined(__FreeBSD__)229#elif defined(__FreeBSD__)
230#define BOUND_TID_TYPE pid_t230#define BOUND_TID_TYPE pid_t
231#define BOUND_GET_TID(id) syscall (SYS_thr_self, &id)231#define BOUND_GET_TID(id) syscall (SYS_thr_self, &id)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t