about summary refs log tree commit diff
path: root/include/bits/xopen_lim.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/bits/xopen_lim.h')
-rw-r--r--include/bits/xopen_lim.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/bits/xopen_lim.h b/include/bits/xopen_lim.h
index c8b847fbc2..9f22e44e25 100644
--- a/include/bits/xopen_lim.h
+++ b/include/bits/xopen_lim.h
@@ -28,9 +28,11 @@
    should be used to obtain the actual value.  */
 
 #ifndef _XOPEN_LIM_H
-
 #define _XOPEN_LIM_H	1
 
+#define __need_FOPEN_MAX
+#include <bits/stdio_lim.h>
+
 /* We do not provide fixed values for
 
    ARG_MAX	Maximum length of argument to the `exec' function
@@ -57,7 +59,7 @@
 #define IOV_MAX		_XOPEN_IOV_MAX
 
 /* The number of streams that one process can have open at one time.  */
-#define STREAM_MAX	_POSIX_STREAM_MAX
+#define STREAM_MAX	FOPEN_MAX
 
 /* Maximum number of bytes supported for the name of a time zone.  */
 #define TZNAME_MAX	_POSIX_TZNAME_MAX