projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f451462
)
protect some limit constants with feature test macros on x86_64
author
Rich Felker
<dalias@aerifal.cx>
Wed, 16 Feb 2011 00:16:37 +0000
(19:16 -0500)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 16 Feb 2011 00:16:37 +0000
(19:16 -0500)
arch/x86_64/bits/limits.h
patch
|
blob
|
history
diff --git
a/arch/x86_64/bits/limits.h
b/arch/x86_64/bits/limits.h
index 4f761b6c53333b394cc109e76fa81ff4d083ce49..465448986bef851864247ac158cba8fe48930e71 100644
(file)
--- 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