]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Support for Sun compiler on Solaris
authorTed Lemon <source@isc.org>
Wed, 11 Sep 1996 05:53:58 +0000 (05:53 +0000)
committerTed Lemon <source@isc.org>
Wed, 11 Sep 1996 05:53:58 +0000 (05:53 +0000)
cf/sunos5-5.h
includes/cf/sunos5-5.h
includes/osdep.h
osdep.h

index ea842a622eedc28f424fa61c014a7b5578311d56..e7cdea621ab9b1f0bdb3e70d4e04eace95702fdd 100644 (file)
@@ -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 <stdarg.h>
 #define VA_DOTDOTDOT ...
@@ -120,3 +120,5 @@ extern int h_errno;
 
 #define TIME time_t
 #define GET_TIME(x)    time ((x))
+
+#define random()       rand()
index ea842a622eedc28f424fa61c014a7b5578311d56..e7cdea621ab9b1f0bdb3e70d4e04eace95702fdd 100644 (file)
@@ -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 <stdarg.h>
 #define VA_DOTDOTDOT ...
@@ -120,3 +120,5 @@ extern int h_errno;
 
 #define TIME time_t
 #define GET_TIME(x)    time ((x))
+
+#define random()       rand()
index f08933705bdd035a3fca600eb39d1d9c871ca30f..02af9dcd4785fafc934e8ab09703f7549e90f017 100644 (file)
@@ -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 f08933705bdd035a3fca600eb39d1d9c871ca30f..02af9dcd4785fafc934e8ab09703f7549e90f017 100644 (file)
--- 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"