X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fslocal.c;h=993a141a0c3a6f217598554f9aad15bf88ee931c;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hp=0e7791608bc08e81b15e7e12d8cccac4cf43c87c;hpb=4fbbf33311630a467654077776f088d7810c2202;p=mmh 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