diff options
author | Ted Lemon <source@isc.org> | 1997-03-29 10:39:11 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1997-03-29 10:39:11 +0000 |
commit | eebefd1be08c51f4f2742518fb09e89e6c99f73c (patch) | |
tree | a470e26ada27c50e04708dbc3685f4df505f3748 | |
parent | 62d7dca5af2824c220d9cf1d11e74bdd56840ab8 (diff) | |
download | isc-dhcp-DHCP-970329.tar.gz |
Solaris needs inet_aton and faked-up endian.hDHCP-970329
-rw-r--r-- | includes/cf/sunos5-5.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/includes/cf/sunos5-5.h b/includes/cf/sunos5-5.h index a6cc4dac..f0508f04 100644 --- a/includes/cf/sunos5-5.h +++ b/includes/cf/sunos5-5.h @@ -105,6 +105,8 @@ extern int h_errno; #define vsnprintf(buf, size, fmt, list) vsprintf (buf, fmt, list) #define NO_SNPRINTF +#define NEED_INET_ATON + /* By default, use BSD Socket API for receiving and sending packets. This actually works pretty well on Solaris, which doesn't censor the all-ones broadcast address. */ @@ -125,3 +127,17 @@ extern int h_errno; #define GET_TIME(x) time ((x)) #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 |