2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 05:47:45 +00:00

Solaris needs inet_aton and faked-up endian.h

This commit is contained in:
Ted Lemon 1997-03-29 10:39:11 +00:00
parent 62d7dca5af
commit eebefd1be0

View File

@ -105,6 +105,8 @@ extern int h_errno;
#define vsnprintf(buf, size, fmt, list) vsprintf (buf, fmt, list) #define vsnprintf(buf, size, fmt, list) vsprintf (buf, fmt, list)
#define NO_SNPRINTF #define NO_SNPRINTF
#define NEED_INET_ATON
/* By default, use BSD Socket API for receiving and sending packets. /* By default, use BSD Socket API for receiving and sending packets.
This actually works pretty well on Solaris, which doesn't censor This actually works pretty well on Solaris, which doesn't censor
the all-ones broadcast address. */ the all-ones broadcast address. */
@ -125,3 +127,17 @@ extern int h_errno;
#define GET_TIME(x) time ((x)) #define GET_TIME(x) time ((x))
#define random() rand() #define random() rand()
/* Solaris doesn't provide an endian.h, so we have to do it. */
#define BIG_ENDIAN 1
#define LITTLE_ENDIAN 2
#if defined (__i386) || defined (i386)
# define BYTE_ORDER LITTLE_ENDIAN
#else
# if defined (__sparc) || defined (sparc)
# define BYTE_ORDER BIG_ENDIAN
# else
@@@ ERROR @@@ Unable to determine byte order!
# endif
#endif