blob: 01778772890ff94a7017be13a2e6f8a887a82cc9 (
plain) (
blame)
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
|
--- timeserver.c.orig Fri Mar 16 07:13:50 2007
+++ timeserver.c Fri Mar 16 07:14:38 2007
@@ -30,9 +30,9 @@
#include <stdarg.h> /* variable arguments stuff */
#include <string.h> /* strrchr(), strerror() */
#include <errno.h> /* errno stuff */
-#if (IRIX || SOLARIS || AIX || HPUX || LINUX || OSX)
+#if (IRIX || SOLARIS || AIX || HPUX || LINUX || OSX || FreeBSD)
#include <unistd.h>
-#if !(SOLARIS || AIX || HPUX || LINUX || OSX)
+#if !(SOLARIS || AIX || HPUX || LINUX || OSX || FreeBSD)
#include <bstring.h>
#endif
#include <limits.h> /* USHRT_MAX */
@@ -58,7 +58,7 @@
/* ----- */
/* Types */
/* ----- */
-#if !(IRIX || SOLARIS || AIX || HPUX || LINUX || OSX)
+#if !(IRIX || SOLARIS || AIX || HPUX || LINUX || OSX || FreeBSD)
/* SGI defines these in <netinet/in.h> */
typedef unsigned long in_addr_t; /* An IP number */
typedef unsigned short in_port_t; /* A port number */
@@ -225,7 +225,7 @@
#if (IRIX || WIN32)
nd = getdtablehi();
#endif
-#if (LINUX || OSX)
+#if (LINUX || OSX || FreeBSD)
nd = getdtablesize();
#endif
#if (AIX)
|