mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-22 18:07:25 +00:00
Support for Sun compiler on Solaris
This commit is contained in:
parent
3be0647e2c
commit
3e7cd8c1ff
@ -85,7 +85,7 @@ extern int h_errno;
|
|||||||
#define _PATH_DHCPD_PID "/etc/dhcpd.pid"
|
#define _PATH_DHCPD_PID "/etc/dhcpd.pid"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#if defined (__GNUC__) || defined (__SVR4)
|
||||||
/* Varargs stuff: use stdarg.h instead ... */
|
/* Varargs stuff: use stdarg.h instead ... */
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#define VA_DOTDOTDOT ...
|
#define VA_DOTDOTDOT ...
|
||||||
@ -120,3 +120,5 @@ extern int h_errno;
|
|||||||
|
|
||||||
#define TIME time_t
|
#define TIME time_t
|
||||||
#define GET_TIME(x) time ((x))
|
#define GET_TIME(x) time ((x))
|
||||||
|
|
||||||
|
#define random() rand()
|
||||||
|
@ -85,7 +85,7 @@ extern int h_errno;
|
|||||||
#define _PATH_DHCPD_PID "/etc/dhcpd.pid"
|
#define _PATH_DHCPD_PID "/etc/dhcpd.pid"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#if defined (__GNUC__) || defined (__SVR4)
|
||||||
/* Varargs stuff: use stdarg.h instead ... */
|
/* Varargs stuff: use stdarg.h instead ... */
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#define VA_DOTDOTDOT ...
|
#define VA_DOTDOTDOT ...
|
||||||
@ -120,3 +120,5 @@ extern int h_errno;
|
|||||||
|
|
||||||
#define TIME time_t
|
#define TIME time_t
|
||||||
#define GET_TIME(x) time ((x))
|
#define GET_TIME(x) time ((x))
|
||||||
|
|
||||||
|
#define random() rand()
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
If you add a new system configuration file, include it here: */
|
If you add a new system configuration file, include it here: */
|
||||||
|
|
||||||
#if defined (sun)
|
#if defined (sun)
|
||||||
# if defined (__svr4__)
|
# if defined (__svr4__) || defined (__SVR4)
|
||||||
# include "cf/sunos5-5.h"
|
# include "cf/sunos5-5.h"
|
||||||
# else
|
# else
|
||||||
# include "cf/sunos4.h"
|
# include "cf/sunos4.h"
|
||||||
|
2
osdep.h
2
osdep.h
@ -62,7 +62,7 @@
|
|||||||
If you add a new system configuration file, include it here: */
|
If you add a new system configuration file, include it here: */
|
||||||
|
|
||||||
#if defined (sun)
|
#if defined (sun)
|
||||||
# if defined (__svr4__)
|
# if defined (__svr4__) || defined (__SVR4)
|
||||||
# include "cf/sunos5-5.h"
|
# include "cf/sunos5-5.h"
|
||||||
# else
|
# else
|
||||||
# include "cf/sunos4.h"
|
# include "cf/sunos4.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user