OpenBSD: workaround missing SYS_gettid - WIP
This commit is contained in:
parent
dfe031caa6
commit
38dea90b2f
1 changed files with 3 additions and 0 deletions
|
|
@ -219,6 +219,9 @@ typedef struct alloca_list_struct {
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#define BOUND_TID_TYPE DWORD
|
#define BOUND_TID_TYPE DWORD
|
||||||
#define BOUND_GET_TID GetCurrentThreadId()
|
#define BOUND_GET_TID GetCurrentThreadId()
|
||||||
|
#elif defined(__OpenBSD__)
|
||||||
|
#define BOUND_TID_TYPE int
|
||||||
|
#define BOUND_GET_TID 0
|
||||||
#elif defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__riscv)
|
#elif defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__riscv)
|
||||||
#define BOUND_TID_TYPE pid_t
|
#define BOUND_TID_TYPE pid_t
|
||||||
#define BOUND_GET_TID syscall (SYS_gettid)
|
#define BOUND_GET_TID syscall (SYS_gettid)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue