X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/56539e8eafef3e955be9d08254d61b139faf34f1..582d618b69077087961c367bd1631495906c92a8:/uip/slocal.c diff --git a/uip/slocal.c b/uip/slocal.c index ca23fd89..993a141a 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -48,20 +48,14 @@ extern int initgroups(char*, int); #endif - -#ifdef HAVE_DB1_NDBM_H -#include -#else -#ifdef HAVE_GDBM_NDBM_H -#include -#else -#if defined(HAVE_DB_H) && defined(HAVE_LIBDB) +/* This define is needed for Berkeley db v2 and above to + * make the header file expose the 'historical' ndbm APIs. + * We define it unconditionally because this is simple and + * harmless. + */ #define DB_DBM_HSEARCH 1 -#include -#else -#include -#endif -#endif +#ifdef NDBM_HEADER +#include NDBM_HEADER #endif #include