Unified · Split
| @@ -223,6 +223,9 @@ typedef struct alloca_list_struct { · 222 unmodified lines | ||
| 223 | 223 | #elif defined(__OpenBSD__) |
| 224 | 224 | #define BOUND_TID_TYPE pid_t |
| 225 | 225 | #define BOUND_GET_TID syscall (SYS_getthrid) |
| 226 | +#elif defined(__FreeBSD__) | |
| 227 | +#define BOUND_TID_TYPE pid_t | |
| 228 | +#define BOUND_GET_TID 0 | |
| 226 | 229 | #elif defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__riscv) |
| 227 | 230 | #define BOUND_TID_TYPE pid_t |
| 228 | 231 | #define BOUND_GET_TID syscall (SYS_gettid) |
| @@ -937,8 +937,10 @@ LIBTCCAPI TCCState *tcc_new(void) · 936 unmodified lines | ||
| 937 | 937 | # ifdef __FreeBSD__ |
| 938 | 938 | /* define __GNUC__ to have some useful stuff from sys/cdefs.h |
| 939 | 939 | that are unconditionally used in FreeBSDs other system headers :/ */ |
| 940 | − tcc_define_symbol(s, "__GNUC__", "2"); | |
| 941 | − tcc_define_symbol(s, "__GNUC_MINOR__", "7"); | |
| 940 | + tcc_define_symbol(s, "__GNUC__", "9"); | |
| 941 | + tcc_define_symbol(s, "__GNUC_MINOR__", "3"); | |
| 942 | + tcc_define_symbol(s, "__GNUC_PATCHLEVEL__", "0"); | |
| 943 | + tcc_define_symbol(s, "__amd64__", "1"); | |
| 942 | 944 | tcc_define_symbol(s, "__builtin_alloca", "alloca"); |
| 943 | 945 | # endif |
| 944 | 946 | # else |