Showing the changes to src (2 of 2 files). Show all
Unified · Split
| @@ -13,30 +13,20 @@ · 12 unmodified lines | ||
| 13 | 13 | #endif |
| 14 | 14 | #include <assert.h> |
| 15 | 15 | #include <ctype.h> |
| 16 | −#include <errno.h> | |
| 17 | 16 | #include <fcntl.h> |
| 18 | 17 | #include <float.h> |
| 19 | 18 | #include <inttypes.h> |
| 20 | 19 | #include <limits.h> |
| 21 | −#include <locale.h> | |
| 22 | 20 | #include <math.h> |
| 23 | 21 | #include <setjmp.h> |
| 24 | 22 | #include <stdbool.h> |
| 25 | 23 | #include <stdarg.h> |
| 26 | 24 | #include <stdio.h> |
| 27 | −#include <stddef.h> | |
| 28 | 25 | #include <stdint.h> |
| 29 | 26 | #include <stdlib.h> |
| 30 | 27 | #include <string.h> |
| 31 | 28 | #include <strings.h> |
| 32 | −#include <sys/mman.h> | |
| 33 | −#include <sys/stat.h> | |
| 34 | −#include <sys/time.h> | |
| 35 | −#include <sys/types.h> | |
| 36 | −#include <time.h> | |
| 37 | 29 | #include <unistd.h> |
| 38 | −#include <wctype.h> | |
| 39 | −#include <wchar.h> | |
| 40 | 30 | |
| 41 | 31 | #if defined(__linux__) |
| 42 | 32 | #define __os_name__ "linux" |
| @@ -63,9 +53,6 @@ extern char *os_version; · 20 unmodified lines | ||
| 63 | 53 | #error pointer size unknown |
| 64 | 54 | #elif __SIZEOF_POINTER__ == 8 |
| 65 | 55 | #define BITS64 |
| 66 | −#if defined(__aarch64__) | |
| 67 | −#define FWD_BIT (1ULL<<55) | |
| 68 | −#endif | |
| 69 | 56 | #endif |
| 70 | 57 | |
| 71 | 58 | typedef sigjmp_buf sl_jmp_buf; |
| @@ -1,5 +1,10 @@ | ||
| 1 | 1 | #include "slpriv.h" |
| 2 | 2 | #include "timefuncs.h" |
| 3 | +#include <errno.h> | |
| 4 | +#include <locale.h> | |
| 5 | +#include <sys/mman.h> | |
| 6 | +#include <sys/time.h> | |
| 7 | +#include <time.h> | |
| 3 | 8 | |
| 4 | 9 | static usize pagesize = 4096; |
| 5 | 10 | #define PAGEALIGNED(x) (((x) + pagesize-1) & ~(pagesize-1)) |