From bb958f59aa14a41529c0567fb4ddd23fb862e5b3 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 2 Jun 2003 22:44:59 +0000 Subject: Update. 2003-06-02 Ulrich Drepper * posix/getconf.c (main): Also recognize names without the __POSIX_ prefix. * elf/Makefile (CFLAGS-dl-lookup.c): Define. --- posix/getconf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'posix') diff --git a/posix/getconf.c b/posix/getconf.c index afe36018ce..0117b64ffc 100644 --- a/posix/getconf.c +++ b/posix/getconf.c @@ -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; -- cgit v1.2.3