From bd0e63aa7ca726781d8ff90fd7c559ad55c67403 Mon Sep 17 00:00:00 2001 From: danj Date: Mon, 15 May 2006 21:22:43 +0000 Subject: [PATCH] fix for linux --- bdb.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bdb.h b/bdb.h index 1a1e948..f2f622e 100644 --- a/bdb.h +++ b/bdb.h @@ -9,6 +9,14 @@ #define NOTXN NULL +#if OPEN_MAX +#define MAXFD OPEN_MAX +#elif FOPEN_MAX +#define MAXFD FOPEN_MAX +#else +#error "No max fd define available." +#endif + #define FNLEN 40 #define filename_copy(fp,fv) \