summaryrefslogtreecommitdiff
path: root/includes/cf
diff options
context:
space:
mode:
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",