about summary refs log tree commit diff
path: root/include/bits/limits.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/bits/limits.h')
-rw-r--r--include/bits/limits.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/bits/limits.h b/include/bits/limits.h
index 48fdd7a1..f5778579 100644
--- a/include/bits/limits.h
+++ b/include/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 32
 #define LONG_BIT 32
+#endif
 
 #define SHRT_MIN  (-1-0x7fff)
 #define SHRT_MAX  0x7fff
@@ -29,4 +31,3 @@
 #define LLONG_MIN  (-1-0x7fffffffffffffffLL)
 #define LLONG_MAX  0x7fffffffffffffffLL
 #define ULLONG_MAX 0xffffffffffffffffULL
-