summaryrefslogtreecommitdiff
path: root/sysdeps/posix/mk-stdiolim.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/mk-stdiolim.c')
-rw-r--r--sysdeps/posix/mk-stdiolim.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/posix/mk-stdiolim.c b/sysdeps/posix/mk-stdiolim.c
index 8858ebeae5..ec482dee96 100644
--- a/sysdeps/posix/mk-stdiolim.c
+++ b/sysdeps/posix/mk-stdiolim.c
@@ -49,7 +49,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);
@@ -74,6 +74,8 @@ main()
#endif
);
+ puts ("# undef __need_FOPEN_MAX");
+ puts ("# define __need_FOPEN_MAX 1");
puts ("#endif\n");
/* POSIX does not require that OPEN_MAX and PATH_MAX be defined, so