diff options
Diffstat (limited to 'sci-libs/hdf/files/hdf-4.2.1_p4-maxavailfiles.patch')
-rw-r--r-- | sci-libs/hdf/files/hdf-4.2.1_p4-maxavailfiles.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sci-libs/hdf/files/hdf-4.2.1_p4-maxavailfiles.patch b/sci-libs/hdf/files/hdf-4.2.1_p4-maxavailfiles.patch new file mode 100644 index 000000000000..b414718c8745 --- /dev/null +++ b/sci-libs/hdf/files/hdf-4.2.1_p4-maxavailfiles.patch @@ -0,0 +1,11 @@ +--- mfhdf/libsrc/file.c.orig 2007-08-17 19:29:53.599016858 +0100 ++++ mfhdf/libsrc/file.c 2007-08-17 19:29:11.936642654 +0100 +@@ -31,7 +31,7 @@ + + /* Maximum number of files can be opened at one time; subtract 3 from + the system allowed to account for stdin, stdout, and stderr */ +-#define MAX_AVAIL_OPENFILES (MAX_SYS_OPENFILES - 3) ++#define MAX_AVAIL_OPENFILES (MAX_SYS_OPENFILES - 10) + + static int _ncdf = 0 ; /* high water mark on open cdf's */ + static NC **_cdfs; |