author | Szabolcs Nagy <nsz@port70.net> | 2013年09月15日 02:00:32 +0000 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2013年09月15日 02:00:32 +0000 |
commit | b20760c02318fa6da228587c401a8b2bb22a1aab (patch) | |
tree | a9bf139467269eb8a87fa2bb3423259eb59903e3 /src/internal/libc.h | |
parent | 7a34dd3495d4bcd3dadc8b9fe2c89f819c15e7fd (diff) | |
download | musl-b20760c02318fa6da228587c401a8b2bb22a1aab.tar.gz |
-rw-r--r-- | src/internal/libc.h | 6 |
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__ |