Generate correct file which defines FOPEN_MAX also when included by
authordrepper <drepper>
Sun, 28 Dec 1997 15:21:19 +0000 (15:21 +0000)
committerdrepper <drepper>
Sun, 28 Dec 1997 15:21:19 +0000 (15:21 +0000)
limits.h.

sysdeps/unix/sysv/linux/stdio_lim.h.in

index 0728095..bded904 100644 (file)
@@ -21,7 +21,7 @@
 # error "Never include <bits/stdio_lim.h> directly; use <stdio.h> instead."
 #endif
 
-#ifndef __need_FOPEN_MAX
+#ifdef _STDIO_H
 # define L_tmpnam 19
 # define TMP_MAX 238328
 
@@ -31,6 +31,9 @@
 # endif
 
 # define FILENAME_MAX  DEFAULT_FILENAME_MAX
+
+# undef __need_FOPEN_MAX
+# define __need_FOPEN_MAX
 #endif
 
 #if defined __need_FOPEN_MAX && !defined __defined_FOPEN_MAX