]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Correctly handle inclusion by stdio.h.
authorUlrich Drepper <drepper@redhat.com>
Sun, 28 Dec 1997 18:24:07 +0000 (18:24 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 28 Dec 1997 18:24:07 +0000 (18:24 +0000)
sysdeps/posix/mk-stdiolim.c

index 3fb58ec4b8c61e7178a43793660864934eed9615..8bc7a8ba011965cce47f530229aa41f5374d6c7b 100644 (file)
@@ -23,7 +23,7 @@ main()
 {
   /* These values correspond to the code in sysdeps/posix/tempname.c.
      Change the values here if you change that code.  */
-  puts ("#ifndef __need_FOPEN_MAX");
+  puts ("#ifdef _STDIO_H");
   printf("#define L_tmpnam %u\n", sizeof("/usr/tmp/") + 9);
   printf("#define TMP_MAX %u\n", 62 * 62 * 62);
 
@@ -48,6 +48,7 @@ main()
 #endif
         );
 
+  puts ("#undef __need_FOPEN_MAX");
   puts ("#define __need_FOPEN_MAX      1");
   puts ("#endif\n");