another cpp fix
This commit is contained in:
parent
bd0e63aa7c
commit
e1ed5d345a
2 changed files with 8 additions and 5 deletions
2
bdb.c
2
bdb.c
|
@ -840,7 +840,7 @@ VALUE db_del(VALUE obj, VALUE vtxn, VALUE vkey, VALUE vflags)
|
|||
return Qtrue;
|
||||
}
|
||||
|
||||
t_dbh *dbassoc[OPEN_MAX];
|
||||
t_dbh *dbassoc[LMAXFD];
|
||||
VALUE
|
||||
assoc_callback2(VALUE *args)
|
||||
{
|
||||
|
|
11
bdb.h
11
bdb.h
|
@ -9,11 +9,14 @@
|
|||
|
||||
#define NOTXN NULL
|
||||
|
||||
#if OPEN_MAX
|
||||
#define MAXFD OPEN_MAX
|
||||
#elif FOPEN_MAX
|
||||
#define MAXFD FOPEN_MAX
|
||||
#ifdef OPEN_MAX
|
||||
#define LMAXFD OPEN_MAX
|
||||
#else
|
||||
#ifdef FOPEN_MAX
|
||||
#define LMAXFD FOPEN_MAX
|
||||
#endif
|
||||
#endif
|
||||
#ifndef LMAXFD
|
||||
#error "No max fd define available."
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue