From 3e7cd8c1ffd51cac7ff0ca5f173f0d04a24809da Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Wed, 11 Sep 1996 05:53:58 +0000 Subject: [PATCH] Support for Sun compiler on Solaris --- cf/sunos5-5.h | 4 +++- includes/cf/sunos5-5.h | 4 +++- includes/osdep.h | 2 +- osdep.h | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/cf/sunos5-5.h b/cf/sunos5-5.h index ea842a62..e7cdea62 100644 --- a/cf/sunos5-5.h +++ b/cf/sunos5-5.h @@ -85,7 +85,7 @@ extern int h_errno; #define _PATH_DHCPD_PID "/etc/dhcpd.pid" #endif -#ifdef __GNUC__ +#if defined (__GNUC__) || defined (__SVR4) /* Varargs stuff: use stdarg.h instead ... */ #include #define VA_DOTDOTDOT ... @@ -120,3 +120,5 @@ extern int h_errno; #define TIME time_t #define GET_TIME(x) time ((x)) + +#define random() rand() diff --git a/includes/cf/sunos5-5.h b/includes/cf/sunos5-5.h index ea842a62..e7cdea62 100644 --- a/includes/cf/sunos5-5.h +++ b/includes/cf/sunos5-5.h @@ -85,7 +85,7 @@ extern int h_errno; #define _PATH_DHCPD_PID "/etc/dhcpd.pid" #endif -#ifdef __GNUC__ +#if defined (__GNUC__) || defined (__SVR4) /* Varargs stuff: use stdarg.h instead ... */ #include #define VA_DOTDOTDOT ... @@ -120,3 +120,5 @@ extern int h_errno; #define TIME time_t #define GET_TIME(x) time ((x)) + +#define random() rand() diff --git a/includes/osdep.h b/includes/osdep.h index f0893370..02af9dcd 100644 --- a/includes/osdep.h +++ b/includes/osdep.h @@ -62,7 +62,7 @@ If you add a new system configuration file, include it here: */ #if defined (sun) -# if defined (__svr4__) +# if defined (__svr4__) || defined (__SVR4) # include "cf/sunos5-5.h" # else # include "cf/sunos4.h" diff --git a/osdep.h b/osdep.h index f0893370..02af9dcd 100644 --- a/osdep.h +++ b/osdep.h @@ -62,7 +62,7 @@ If you add a new system configuration file, include it here: */ #if defined (sun) -# if defined (__svr4__) +# if defined (__svr4__) || defined (__SVR4) # include "cf/sunos5-5.h" # else # include "cf/sunos4.h"