]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Include stdio_lim.h to get definition of FOPEN_MAX.
authorUlrich Drepper <drepper@redhat.com>
Sun, 21 Dec 1997 21:10:46 +0000 (21:10 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 21 Dec 1997 21:10:46 +0000 (21:10 +0000)
Define STREAM_MAX using FOPEN_MAX.

xopen_lim.h

index 04a11ba32054b309ca347359d610dc425ba19394..4107a5d71f5a9b12e26090648407aee550df1a57 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997 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
    should be used to obtain the actual value.  */
 
 #ifndef _XOPEN_LIM_H
-
 #define _XOPEN_LIM_H   1
 
+#define __need_FOPEN_MAX
+#include <stdio_lim.h>
+
 /* We do not provide fixed values for
 
    ARG_MAX     Maximum length of argument to the `exec' function
@@ -53,7 +55,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