blob: 754d75f95d94be20ad9d341dfb1cc3efd4513a41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
$NetBSD: patch-ah,v 1.6 1999/09/15 21:30:59 tron Exp $
--- popper.h.orig Fri Jul 10 01:44:08 1998
+++ popper.h Wed Sep 15 23:28:17 1999
@@ -31,14 +31,26 @@
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
-# 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 <stdlib.h>
+#endif
+
+#ifdef HAVE_STRING_H
+# include <string.h>
+#endif
+
+#ifdef HAVE_TIME_H
+# include <time.h>
+#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 <kerberos/krb.h>
#else
-# ifdef BSDI
+# if defined (BSDI) || defined (__NetBSD__)
# include <kerberosIV/des.h>
# include <kerberosIV/krb.h>
# else
|