summaryrefslogtreecommitdiff
path: root/includes/cf
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2000-02-02 20:01:50 +0000
committerTed Lemon <source@isc.org>2000-02-02 20:01:50 +0000
commit9458e9aa074b9dfc14b014adfff3ef2dc971cdaf (patch)
tree5d42b46fe84d6213d7874763674a734b9efa5692 /includes/cf
parent439a9b002ec6979321047882c739f38d07c1999a (diff)
downloadisc-dhcp-9458e9aa074b9dfc14b014adfff3ef2dc971cdaf.tar.gz
Minor solaris fixes.
Diffstat (limited to 'includes/cf')
-rw-r--r--includes/cf/aix.h2
-rw-r--r--includes/cf/sunos5-5.h6
2 files changed, 8 insertions, 0 deletions
diff --git a/includes/cf/aix.h b/includes/cf/aix.h
index 4e9549fd..d63d9329 100644
--- a/includes/cf/aix.h
+++ b/includes/cf/aix.h
@@ -51,7 +51,9 @@
#include <setjmp.h>
#include <limits.h>
+#if !defined (h_errno) /* It's a macro on newer instances of AIX. */
extern int h_errno;
+#endif
#include <net/if.h>
#include <net/if_arp.h>
diff --git a/includes/cf/sunos5-5.h b/includes/cf/sunos5-5.h
index 29e72939..0b3d7ffb 100644
--- a/includes/cf/sunos5-5.h
+++ b/includes/cf/sunos5-5.h
@@ -123,8 +123,10 @@ extern int h_errno;
/* Solaris prior to 2.5 didn't have random(). Rather than being clever and
using random() only on versions >2.5, always use rand() and srand(). */
+#if SOLARIS_MAJOR == 5 && SOLARIS_MINOR < 5
#define random() rand()
#define srandom(x) srand(x)
+#endif
/* Solaris doesn't provide an endian.h, so we have to do it. */
@@ -150,6 +152,10 @@ extern int h_errno;
#define ALIAS_NAMES_PERMUTED
+#if SOLARIS_MAJOR == 5 && SOLARIS_MINOR < 7
+typedef int socklen_t;
+#endif
+
#ifdef NEED_PRAND_CONF
const char *cmds[] = {
"/bin/ps -ef 2>&1",