]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Define SOCKLEN_T, to avoid header incompatibility issue. Define htons.
authorTed Lemon <source@isc.org>
Thu, 3 Feb 2000 03:51:28 +0000 (03:51 +0000)
committerTed Lemon <source@isc.org>
Thu, 3 Feb 2000 03:51:28 +0000 (03:51 +0000)
includes/cf/hpux.h

index d640ab1417339382039ed5d4827809c37a27e102..84cabfd0ae76336798273858b4d89e1f985dec5e 100644 (file)
@@ -42,6 +42,8 @@ extern int h_errno;
 #include <net/if.h>
 #include <net/if_arp.h>
 
+#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",