diff options
Diffstat (limited to 'src/internal/libc.h')
-rw-r--r-- | src/internal/libc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/internal/libc.h b/src/internal/libc.h index c8fbe3fd..3350b3d1 100644 --- a/src/internal/libc.h +++ b/src/internal/libc.h @@ -3,6 +3,7 @@ #include <stdlib.h> #include <stdio.h> +#include <limits.h> struct __libc { void *main_thread; @@ -14,10 +15,15 @@ struct __libc { FILE *ofl_head; int ofl_lock[2]; size_t tls_size; + size_t page_size; }; extern size_t __hwcap; +#ifndef PAGE_SIZE +#define PAGE_SIZE libc.page_size +#endif + #if !defined(__PIC__) || (100*__GNUC__+__GNUC_MINOR__ >= 303 && !defined(__PCC__)) #ifdef __PIC__ |