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"