You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
704 B
29 lines
704 B
|
21 years ago
|
Index: server_main.c
|
||
|
|
--- server_main.c.orig 2005-09-13 16:00:14.000000000 +0200
|
||
|
|
+++ server_main.c 2005-09-15 07:07:33.070467000 +0200
|
||
|
|
@@ -145,6 +145,9 @@
|
||
|
|
openlog("citadel", LOG_NDELAY, syslog_facility);
|
||
|
|
}
|
||
|
|
else {
|
||
|
|
+#ifndef LOG_PERROR
|
||
|
|
+#define LOG_PERROR 0
|
||
|
|
+#endif
|
||
|
|
openlog("citadel", LOG_PERROR|LOG_NDELAY,
|
||
|
|
syslog_facility);
|
||
|
|
}
|
||
|
|
Index: sysdep.c
|
||
|
|
--- sysdep.c.orig 2005-09-13 16:00:14.000000000 +0200
|
||
|
|
+++ sysdep.c 2005-09-15 07:07:48.206598000 +0200
|
||
|
|
@@ -290,7 +290,10 @@
|
||
|
|
else {
|
||
|
|
sin.sin_addr.s_addr = inet_addr(ip_addr);
|
||
|
|
}
|
||
|
|
-
|
||
|
|
+
|
||
|
|
+#ifndef INADDR_NONE
|
||
|
|
+#define INADDR_NONE 0xffffffff
|
||
|
|
+#endif
|
||
|
|
if (sin.sin_addr.s_addr == INADDR_NONE) {
|
||
|
|
sin.sin_addr.s_addr = INADDR_ANY;
|
||
|
|
}
|