about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-09-07 00:18:06 -0700
committerPetr Baudis <pasky@suse.cz>2009-09-18 20:09:59 +0200
commit36157661ee779a91b90b9ebd850c40604d3c1be2 (patch)
treee29c659290d421a6b2925d314631a28053316b6b
parenta4a10e2d63991e462c9c6111d98ddf1fb03dd637 (diff)
downloadglibc-36157661ee779a91b90b9ebd850c40604d3c1be2.tar.gz
glibc-36157661ee779a91b90b9ebd850c40604d3c1be2.tar.xz
glibc-36157661ee779a91b90b9ebd850c40604d3c1be2.zip
Handle POSIX2_LINE_MAX in getconf.
(cherry picked from commit d76da20f7f77e9dfc7e81ebaf0f9902699a873e8)
-rw-r--r--ChangeLog5
-rw-r--r--posix/getconf.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ee15366061..0ef7f505b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-09-07  Ulrich Drepper  <drepper@redhat.com>
+
+	* posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
+	_POSIX2_LINE_MAX.
+
 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* configure.in: Support binutils 2.20.
diff --git a/posix/getconf.c b/posix/getconf.c
index 59ccab606c..bd7dff7167 100644
--- a/posix/getconf.c
+++ b/posix/getconf.c
@@ -484,6 +484,7 @@ static const struct conf vars[] =
 #endif
 #ifdef _SC_LINE_MAX
     { "_POSIX2_LINE_MAX", _SC_LINE_MAX, SYSCONF },
+    { "POSIX2_LINE_MAX", _SC_LINE_MAX, SYSCONF },
 #endif
 #ifdef _SC_2_LOCALEDEF
     { "POSIX2_LOCALEDEF", _SC_2_LOCALEDEF, SYSCONF },