From daaae3fef353932552952f5350a444f9a3ce10ff Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 21 Dec 1997 21:10:46 +0000 Subject: [PATCH] Include stdio_lim.h to get definition of FOPEN_MAX. Define STREAM_MAX using FOPEN_MAX. --- xopen_lim.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xopen_lim.h b/xopen_lim.h index 04a11ba3205..4107a5d71f5 100644 --- a/xopen_lim.h +++ b/xopen_lim.h @@ -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 @@ -24,9 +24,11 @@ should be used to obtain the actual value. */ #ifndef _XOPEN_LIM_H - #define _XOPEN_LIM_H 1 +#define __need_FOPEN_MAX +#include + /* 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 -- 2.47.2