More Hurd fixes; Conditionally #define MAXHOSTNAMELEN
Ondřej Surý
12 years ago
23 | 23 | extern int optind, opterr; |
24 | 24 | extern char *optarg; |
25 | 25 | |
26 | --- a/imap/pop3d.c | |
27 | +++ b/imap/pop3d.c | |
28 | @@ -94,6 +94,10 @@ | |
29 | #include "sync_log.h" | |
30 | #include "statuscache.h" | |
31 | ||
32 | +#ifndef MAXHOSTNAMELEN | |
33 | +#define MAXHOSTNAMELEN | |
34 | +#endif | |
35 | + | |
36 | #ifdef HAVE_KRB | |
37 | /* kerberos des is purported to conflict with OpenSSL DES */ | |
38 | #define DES_DEFS | |
39 | --- a/syslog/syslogd.c | |
40 | +++ b/syslog/syslogd.c | |
41 | @@ -156,6 +156,10 @@ static char sccsid[] = "@(#)syslogd.c 5. | |
42 | #include <ctype.h> | |
43 | #include <string.h> | |
44 | ||
45 | +#ifndef MAXHOSTNAMELEN | |
46 | +#define MAXHOSTNAMELEN 255 | |
47 | +#endif | |
48 | + | |
49 | #define SYSLOG_NAMES | |
50 | #include "syslog.h" | |
51 |