diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-02-15 19:16:37 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-02-15 19:16:37 -0500 |
commit | 8894947ba2b9f595d8aac1030b7c79f3c6a51f27 (patch) | |
tree | 1ca99cf6e0fb399ce2df713f0d665862ca47f1e9 /arch/x86_64/bits | |
parent | f451462098deada2fc30831a28719456e7d474a7 (diff) | |
download | musl-8894947ba2b9f595d8aac1030b7c79f3c6a51f27.tar.gz musl-8894947ba2b9f595d8aac1030b7c79f3c6a51f27.tar.xz musl-8894947ba2b9f595d8aac1030b7c79f3c6a51f27.zip |
protect some limit constants with feature test macros on x86_64
Diffstat (limited to 'arch/x86_64/bits')
-rw-r--r-- | arch/x86_64/bits/limits.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86_64/bits/limits.h b/arch/x86_64/bits/limits.h index 4f761b6c..46544898 100644 --- a/arch/x86_64/bits/limits.h +++ b/arch/x86_64/bits/limits.h @@ -1,3 +1,5 @@ +#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ + || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) #define PIPE_BUF 4096 #define PAGESIZE 4096 #define PAGE_SIZE PAGESIZE @@ -10,9 +12,9 @@ #define ARG_MAX 131072 #define IOV_MAX 1024 #define SYMLOOP_MAX 40 - #define WORD_BIT 64 #define LONG_BIT 64 +#endif #define SHRT_MIN (-1-0x7fff) #define SHRT_MAX 0x7fff |