diff options
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 26 |
1 files changed, 22 insertions, 4 deletions
@@ -1,7 +1,7 @@ #ifndef _DEFINES_H #define _DEFINES_H -/* $Id: defines.h,v 1.79 2002/02/13 18:14:53 tim Exp $ */ +/* $Id: defines.h,v 1.80 2002/02/26 16:40:49 tim Exp $ */ /* Necessary headers */ @@ -11,9 +11,6 @@ #include <netinet/in_systm.h> /* For typedefs */ #include <netinet/in.h> /* For IPv6 macros */ #include <netinet/ip.h> /* For IPTOS macros */ -#ifdef HAVE_RPC_RPC_H -# include <rpc/rpc.h> /* For INADDR_LOOPBACK on SCO OSR3 */ -#endif #ifdef HAVE_SYS_UN_H # include <sys/un.h> /* For sockaddr_un */ #endif @@ -144,6 +141,14 @@ enum # define NFDBITS (8 * sizeof(unsigned long)) #endif +/* +SCO Open Server 3 has INADDR_LOOPBACK defined in rpc/rpc.h but +including rpc/rpc.h breaks Solaris 6 +*/ +#ifndef INADDR_LOOPBACK +#define INADDR_LOOPBACK ((ulong)0x7f000001) +#endif + /* Types */ /* If sys/types.h does not supply intXX_t, supply them ourselves */ @@ -164,7 +169,11 @@ typedef char int8_t; typedef short int int16_t; # else # ifdef _CRAY +# if (SIZEOF_SHORT_INT == 4) +typedef short int16_t; +# else typedef long int16_t; +# endif # else # error "16 bit int type not found." # endif /* _CRAY */ @@ -197,7 +206,11 @@ typedef unsigned char u_int8_t; typedef unsigned short int u_int16_t; # else # ifdef _CRAY +# if (SIZEOF_SHORT_INT == 4) +typedef unsigned short u_int16_t; +# else typedef unsigned long u_int16_t; +# endif # else # error "16 bit int type not found." # endif @@ -272,6 +285,11 @@ typedef int pid_t; # define HAVE_PID_T #endif /* HAVE_PID_T */ +#ifndef HAVE_SIG_ATOMIC_T +typedef int sig_atomic_t; +# define HAVE_SIG_ATOMIC_T +#endif /* HAVE_SIG_ATOMIC_T */ + #ifndef HAVE_MODE_T typedef int mode_t; # define HAVE_MODE_T |