From: Ted Lemon Date: Wed, 11 Sep 1996 05:53:58 +0000 (+0000) Subject: Support for Sun compiler on Solaris X-Git-Tag: BETA_5_10~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e7cd8c1ffd51cac7ff0ca5f173f0d04a24809da;p=thirdparty%2Fdhcp.git Support for Sun compiler on Solaris --- diff --git a/cf/sunos5-5.h b/cf/sunos5-5.h index ea842a622..e7cdea621 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 ea842a622..e7cdea621 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 f08933705..02af9dcd4 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 f08933705..02af9dcd4 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"