From: Ted Lemon Date: Mon, 9 Apr 2001 01:13:32 +0000 (+0000) Subject: SCO Fixups. X-Git-Tag: V3-RC1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bd346b5071819122e20fd91c1bc6097a3c950ba;p=thirdparty%2Fdhcp.git SCO Fixups. --- diff --git a/includes/cf/sco.h b/includes/cf/sco.h index 1e69e2f74..ccd132e8e 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 +#include #include +#include +#include +#include /* 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 +#include #define TIME time_t #define GET_TIME(x) time ((x))