X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fslocal.c;h=275eedd48d8bb7bbb1830a4b60906e15288bfdf6;hp=ca23fd89457900685cc25449f7f4d8a1e73c6f25;hb=fb49dd82ec42997b9df97f221c920f6596102c0a;hpb=56539e8eafef3e955be9d08254d61b139faf34f1 diff --git a/uip/slocal.c b/uip/slocal.c index ca23fd8..275eedd 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -16,9 +16,6 @@ * * to their $HOME/.forward file. * - * Under MMDF-I, users should (symbolically) link - * /usr/local/nmh/lib/slocal to $HOME/bin/rcvmail. - * */ /* Changed to use getutent() and friends. Assumes that when getutent() exists, @@ -32,6 +29,7 @@ #include #include #include +#include #include #include @@ -48,20 +46,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 @@ -1196,10 +1188,6 @@ usr_pipe (int fd, char *cmd, char *pgm, char **vec, int suppress) status = pidwait (child_id, 0); alarm (0); -#ifdef MMDFI - if (status == RP_MOK || status == RP_OK) - status = 0; -#endif if (verbose) { if (status == 0) verbose_printf (", success.\n");