aboutsummaryrefslogtreecommitdiff
path: root/posix/bits
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-11-19 23:36:20 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-11-19 23:36:20 +0000
commit877f2d8e8def5a278e4b9f4e4dc378f7f8a653b8 (patch)
treeb3b4c3675d8832b5ad633c4216c147466eb77f94 /posix/bits
parent6eb43a28afc338baf1aceef7bf8d3174daf9d084 (diff)
downloadglibc-877f2d8e8def5a278e4b9f4e4dc378f7f8a653b8.zip
glibc-877f2d8e8def5a278e4b9f4e4dc378f7f8a653b8.tar.gz
glibc-877f2d8e8def5a278e4b9f4e4dc378f7f8a653b8.tar.bz2
Fix _POSIX_TZNAME_MAX for older POSIX (bug 14856).
Diffstat (limited to 'posix/bits')
-rw-r--r--posix/bits/posix1_lim.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/posix/bits/posix1_lim.h b/posix/bits/posix1_lim.h
index 5800ef5..e7587ed 100644
--- a/posix/bits/posix1_lim.h
+++ b/posix/bits/posix1_lim.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-1993,96,98,2000-2003,2004 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -134,7 +134,11 @@
#define _POSIX_TTY_NAME_MAX 9
/* Maximum length of a timezone name (element of `tzname'). */
-#define _POSIX_TZNAME_MAX 6
+#ifdef __USE_XOPEN2K
+# define _POSIX_TZNAME_MAX 6
+#else
+# define _POSIX_TZNAME_MAX 3
+#endif
#if !defined __USE_XOPEN2K || defined __USE_GNU
/* Maximum number of connections that can be queued on a socket. */