$NetBSD: patch-ab,v 1.4 1998/08/07 11:09:53 agc Exp $ --- popper.h.orig Wed Nov 19 22:20:39 1997 +++ popper.h Sat Mar 7 00:42:23 1998 @@ -31,14 +31,26 @@ #ifdef HAVE_SYS_PARAM_H #include -# if (defined(BSD) && (BSD >= 199103)) +# if (defined(BSD) && (BSD >= 199103)) && 0 /* shouldn't be necessary anymore */ # define HAVE_UNISTD_H # define HAVE_VPRINTF # define BIND43 # endif #endif -#ifdef BSDI +#ifdef HAVE_STDLIB_H +# include +#endif + +#ifdef HAVE_STRING_H +# include +#endif + +#ifdef HAVE_TIME_H +# include +#endif + +#if defined (BSDI) || defined (__NetBSD__) #define BSD44_DBM #endif @@ -67,12 +79,12 @@ #define MAXPARMLEN 10 #define ALLOC_MSGS 20 -#ifndef OSF1 -# define POP_FACILITY LOG_LOCAL0 -#else +#if defined(OSF1) || defined(__NetBSD__) # define POP_FACILITY LOG_MAIL +#else +# define POP_FACILITY LOG_LOCAL0 #endif -#define POP_PRIORITY LOG_NOTICE +#define POP_PRIORITY LOG_INFO #define POP_DEBUG LOG_DEBUG #define POP_LOGOPTS LOG_PID @@ -292,13 +304,13 @@ #ifdef KERBEROS #ifndef KERBEROS_SERVICE -# define KERBEROS_SERVICE "rcmd" +# define KERBEROS_SERVICE "pop" #endif #ifdef SOLARIS2 # include #else -# ifdef BSDI +# if defined (BSDI) || defined (__NetBSD__) # include # include # else