about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-27 18:28:09 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-27 18:28:09 +0000
commitb4f48b41b478c9344ab81bfb82785b5736e6aafc (patch)
tree6c4b299dc56982c7bc89e4cf19f454edd3ff3963
parent48bde9c35cdc95ea6320fdda97b3e64c0ee933fd (diff)
downloadglibc-b4f48b41b478c9344ab81bfb82785b5736e6aafc.tar.gz
glibc-b4f48b41b478c9344ab81bfb82785b5736e6aafc.tar.xz
glibc-b4f48b41b478c9344ab81bfb82785b5736e6aafc.zip
Update.
	* posix/annexc.c: Correct test for unavailable feature.
-rw-r--r--ChangeLog2
-rw-r--r--posix/annexc.c7
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index d9c1a71ba7..459e97f0a7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
 
+	* posix/annexc.c: Correct test for unavailable feature.
+
 	* sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
 	__inline.
 
diff --git a/posix/annexc.c b/posix/annexc.c
index e9e1ac9cdd..1dbc3f617b 100644
--- a/posix/annexc.c
+++ b/posix/annexc.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 2000 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
@@ -618,7 +618,7 @@ echo \"#include <%s>\" |\
 -isystem `%s --print-prog-name=include` - > %s";
 
 static const char testfmt[] = "\
-echo \"#include <unistd.h>\n#ifndef %s\n#error not defined\n#endif\n\" |\
+echo \"#include <unistd.h>\n#if !defined %s || %s == -1\n#error not defined\n#endif\n\" |\
 %s -E -dM -D_POSIX_SOURCE -D_LIBC %s \
 -isystem `%s --print-prog-name=include` - 2> /dev/null > %s";
 
@@ -814,7 +814,8 @@ check_header (const struct header *header, const char **except)
   /* First see whether this subset is supported at all.  */
   if (header->subset != NULL)
     {
-      sprintf (line, testfmt, header->subset, CC, INC, CC, TMPFILE);
+      sprintf (line, testfmt, header->subset, header->subset, CC, INC, CC,
+	       TMPFILE);
       if (xsystem (line))
 	{
 	  printf ("!! not available\n");