Unified · Split
| @@ -92,6 +92,11 @@ · 91 unmodified lines | |||
| 92 | # if __SIZEOF_POINTER__ == 8 | 92 | # if __SIZEOF_POINTER__ == 8 |
| 93 | /* FIXME, __int128_t is used by setjump */ | 93 | /* FIXME, __int128_t is used by setjump */ |
| 94 | #define __int128_t struct { unsigned char _dummy[16] __attribute((aligned(16))); } | 94 | #define __int128_t struct { unsigned char _dummy[16] __attribute((aligned(16))); } |
| 95 | #define __SIZEOF_SIZE_T__ 8 | ||
| 96 | #define __SIZEOF_PTRDIFF_T__ 8 | ||
| 97 | #else | ||
| 98 | #define __SIZEOF_SIZE_T__ 4 | ||
| 99 | #define __SIZEOF_PTRDIFF_T__ 4 | ||
| 95 | # endif | 100 | # endif |
| 96 | 101 | ||
| 97 | #elif defined __FreeBSD_kernel__ | 102 | #elif defined __FreeBSD_kernel__ |
| @@ -226,10 +226,13 @@ typedef struct alloca_list_struct { · 225 unmodified lines | |||
| 226 | #elif defined(__OpenBSD__) | 226 | #elif defined(__OpenBSD__) |
| 227 | #define BOUND_TID_TYPE pid_t | 227 | #define BOUND_TID_TYPE pid_t |
| 228 | #define BOUND_GET_TID syscall (SYS_getthrid) | 228 | #define BOUND_GET_TID syscall (SYS_getthrid) |
| 229 | #elif defined(__FreeBSD__) || defined(__NetBSD__) | 229 | #elif defined(__FreeBSD__) |
| 230 | #define BOUND_TID_TYPE pid_t | 230 | #define BOUND_TID_TYPE pid_t |
| 231 | #define BOUND_GET_TID 0 | 231 | #define BOUND_GET_TID syscall (SYS_thr_self) |
| 232 | #elif defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__riscv) | 232 | #elif defined(__NetBSD__) |
| 233 | #define BOUND_TID_TYPE pid_t | ||
| 234 | #define BOUND_GET_TID syscall (SYS__lwp_self) | ||
| 235 | #elif defined(__linux__) | ||
| 233 | #define BOUND_TID_TYPE pid_t | 236 | #define BOUND_TID_TYPE pid_t |
| 234 | #define BOUND_GET_TID syscall (SYS_gettid) | 237 | #define BOUND_GET_TID syscall (SYS_gettid) |
| 235 | #else | 238 | #else |