History

OpenBSD: workaround missing SYS_gettid - WIP

Christian Jullien committed 5 years ago

Commit 38dea901 parent dfe031c1 file · +3 −0Browse files

Unified · Split

lib/bcheck.c+3−0
@@ -219,6 +219,9 @@ typedef struct alloca_list_struct { · 218 unmodified lines
219219 #if defined(_WIN32)
220220 #define BOUND_TID_TYPE DWORD
221221 #define BOUND_GET_TID GetCurrentThreadId()
222+#elif defined(__OpenBSD__)
223+#define BOUND_TID_TYPE int
224+#define BOUND_GET_TID 0
222225 #elif defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__riscv)
223226 #define BOUND_TID_TYPE pid_t
224227 #define BOUND_GET_TID syscall (SYS_gettid)

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