Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 2 Jun 2003 22:44:59 +0000 (22:44 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 2 Jun 2003 22:44:59 +0000 (22:44 +0000)
2003-06-02  Ulrich Drepper  <drepper@redhat.com>

* posix/getconf.c (main): Also recognize names without the
__POSIX_ prefix.

* elf/Makefile (CFLAGS-dl-lookup.c): Define.

ChangeLog
elf/Makefile
posix/getconf.c

index 48c1c58..ea8514f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-06-02  Ulrich Drepper  <drepper@redhat.com>
+
+       * posix/getconf.c (main): Also recognize names without the
+       __POSIX_ prefix.
+
+       * elf/Makefile (CFLAGS-dl-lookup.c): Define.
+
 2003-06-02  Bernd Schmidt  <bernds@redhat.com>
 
        * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
index 003f77e..2622801 100644 (file)
@@ -83,6 +83,7 @@ distribute    := rtld-Rules \
                   check-textrel.c dl-sysdep.h
 
 CFLAGS-dl-runtime.c = -fexceptions -fasynchronous-unwind-tables
+CFLAGS-dl-lookup.c = -fexceptions -fasynchronous-unwind-tables
 
 include ../Makeconfig
 
index afe3601..0117b64 100644 (file)
@@ -957,7 +957,9 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
     usage ();
 
   for (c = vars; c->name != NULL; ++c)
-    if (!strcmp (c->name, argv[1]))
+    if (strcmp (c->name, argv[1]) == 0
+       || (strncmp (c->name, "_POSIX_", 7) == 0
+           && strcmp (c->name + 7, argv[1]) == 0))
       {
        long int value;
        size_t clen;