summaryrefslogtreecommitdiff
path: root/includes/cf
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2001-04-09 01:13:32 +0000
committerTed Lemon <source@isc.org>2001-04-09 01:13:32 +0000
commit8bd346b5071819122e20fd91c1bc6097a3c950ba (patch)
treefd53faa7fe13b90b2f6348fff0696f77dee137cb /includes/cf
parentc267626033afb199d0bbe49c34aad54fd0163c09 (diff)
downloadisc-dhcp-8bd346b5071819122e20fd91c1bc6097a3c950ba.tar.gz
SCO Fixups.
Diffstat (limited to 'includes/cf')
-rw-r--r--includes/cf/sco.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/includes/cf/sco.h b/includes/cf/sco.h
index 1e69e2f7..ccd132e8 100644
--- a/includes/cf/sco.h
+++ b/includes/cf/sco.h
@@ -67,7 +67,11 @@ typedef unsigned long u_int32_t;
extern int h_errno;
#include <net/if.h>
+#include <net/if_dl.h>
#include <net/if_arp.h>
+#include <netinet/tcp.h>
+#include <netinet/in.h>
+#include <netinet/tcp.h>
/* XXX dunno if this is required for SCO... */
/*
@@ -79,16 +83,26 @@ extern int h_errno;
/* IPTOS_LOWCOST 0x02 XXX */
/* SCO doesn't have /var/run. */
+#ifndef _PATH_DHCPD_CONF
+#define _PATH_DHCPD_CONF "/etc/dhcpd.conf"
+#endif
#ifndef _PATH_DHCPD_PID
-#define _PATH_DHCPD_PID "/etc/dhcpd.pid"
+#define _PATH_DHCPD_PID "/etc/dhcpd.pid"
#endif
#ifndef _PATH_DHCLIENT_PID
-#define _PATH_DHCLIENT_PID "/etc/dhclient.pid"
+#define _PATH_DHCLIENT_PID "/etc/dhclient.pid"
#endif
#ifndef _PATH_DHCRELAY_PID
-#define _PATH_DHCRELAY_PID "/etc/dhcrelay.pid"
+#define _PATH_DHCRELAY_PID "/etc/dhcrelay.pid"
+#endif
+#ifndef _PATH_DHCPD_DB
+#define _PATH_DHCPD_DB "/etc/dhcpd.leases"
+#endif
+#ifndef _PATH_DHCLIENT_DB
+#define _PATH_DHCLIENT_DB "/etc/dhclient.leases"
#endif
+
#if !defined (INADDR_LOOPBACK)
#define INADDR_LOOPBACK ((u_int32_t)0x7f000001)
#endif
@@ -113,6 +127,9 @@ extern int h_errno;
#define EOL '\n'
#define VOIDPTR void *
+/* socklen_t */
+typedef int socklen_t;
+
/*
* Time stuff...
*
@@ -121,6 +138,7 @@ extern int h_errno;
*/
#include <time.h>
+#include <sys/time.h>
#define TIME time_t
#define GET_TIME(x) time ((x))