summaryrefslogtreecommitdiff
path: root/include/limits.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-10-20 22:01:51 -0400
committerRich Felker <dalias@aerifal.cx>2013-10-20 22:01:51 -0400
commit8f0359605a24277e3d67f2b9e3477437a7d38706 (patch)
tree719f2bd1739afd1124fe484a442e70310e70ea2a /include/limits.h
parent38b9c0274974a1b9941adb2e59238b153704151f (diff)
downloadmusl-8f0359605a24277e3d67f2b9e3477437a7d38706.tar.gz
musl-8f0359605a24277e3d67f2b9e3477437a7d38706.tar.bz2
musl-8f0359605a24277e3d67f2b9e3477437a7d38706.tar.xz
musl-8f0359605a24277e3d67f2b9e3477437a7d38706.zip
fix multiple minor namespace issues in headers
fcntl.h: AT_* is not a reserved namespace so extensions cannot be exposed by default. langinfo.h: YESSTR and NOSTR were removed from the standard. limits.h: NL_NMAX was removed from the standard. signal.h: the conditional for NSIG was wrongly checking _XOPEN_SOURCE rather than _BSD_SOURCE. this was purely a mistake; it doesn't even match the commit message from the commit that added it.
Diffstat (limited to 'include/limits.h')
-rw-r--r--include/limits.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/limits.h b/include/limits.h
index a8460cc8..574b406a 100644
--- a/include/limits.h
+++ b/include/limits.h
@@ -84,12 +84,18 @@
#define NL_ARGMAX 9
#define NL_LANGMAX 32
#define NL_MSGMAX 32767
-#define NL_NMAX (MB_LEN_MAX*4)
#define NL_SETMAX 255
#define NL_TEXTMAX 2048
#endif
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) \
+ || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700)
+
+#define NL_NMAX 16
+
+#endif
+
/* POSIX/SUS requirements follow. These numbers come directly
* from SUS and have nothing to do with the host system. */