X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fslocal.c;h=993a141a0c3a6f217598554f9aad15bf88ee931c;hp=0e7791608bc08e81b15e7e12d8cccac4cf43c87c;hb=0cd75fec1902ab5540539fe8c95a071caf18f58e;hpb=29d590d74c6e03f5efe9f743c40a61028ccd491d diff --git a/uip/slocal.c b/uip/slocal.c index 0e77916..993a141 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) +/* 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