From: Ted Lemon Date: Thu, 3 Feb 2000 03:51:28 +0000 (+0000) Subject: Define SOCKLEN_T, to avoid header incompatibility issue. Define htons. X-Git-Tag: V3-BETA-2-PATCH-1~337 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ac520c2c0edeb2d666b78aba63dd9a0ebfe9095;p=thirdparty%2Fdhcp.git Define SOCKLEN_T, to avoid header incompatibility issue. Define htons. --- diff --git a/includes/cf/hpux.h b/includes/cf/hpux.h index d640ab141..84cabfd0a 100644 --- a/includes/cf/hpux.h +++ b/includes/cf/hpux.h @@ -42,6 +42,8 @@ extern int h_errno; #include #include +#define htons(x) (x) /* sigh */ + #ifndef _PATH_DHCPD_PID #define _PATH_DHCPD_PID "/etc/dhcpd.pid" #endif @@ -80,6 +82,9 @@ extern int h_errno; #define BYTE_ORDER BIG_ENDIAN #define BIG_ENDIAN 1 + +#define SOCKLEN_T int + #ifdef NEED_PRAND_CONF const char *cmds[] = { "/usr/bin/ps -ef 2>&1",