diff options
author | Garrett Wollman <wollman@FreeBSD.org> | 1994-08-07 18:41:02 +0000 |
---|---|---|
committer | Garrett Wollman <wollman@FreeBSD.org> | 1994-08-07 18:41:02 +0000 |
commit | 86b9a9cc2dfc51ec5a8131f2c8a645548320c9c1 (patch) | |
tree | de69a93c1a8200600a73fd75094947ae1f3c766f /include/rpc/types.h | |
parent | eae561b30ec984ce171d99b1fd182575acc2c639 (diff) | |
download | src-86b9a9cc2dfc51ec5a8131f2c8a645548320c9c1.tar.gz src-86b9a9cc2dfc51ec5a8131f2c8a645548320c9c1.zip |
Use the header files that are compatible with the code just moved over
from 1.1.5.
Notes
Notes:
svn path=/head/; revision=1903
Diffstat (limited to 'include/rpc/types.h')
-rw-r--r-- | include/rpc/types.h | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/include/rpc/types.h b/include/rpc/types.h index 06d22bf8006a..b12221d0d3b2 100644 --- a/include/rpc/types.h +++ b/include/rpc/types.h @@ -1,4 +1,3 @@ -/* @(#)types.h 2.3 88/08/15 4.0 RPCSRC */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for * unrestricted use provided that this legend is included on all tape @@ -26,25 +25,32 @@ * Sun Microsystems, Inc. * 2550 Garcia Avenue * Mountain View, California 94043 + * + * from: @(#)types.h 1.18 87/07/24 SMI + * from: @(#)types.h 2.3 88/08/15 4.0 RPCSRC + * $Id: types.h,v 1.1 1993/10/27 05:41:04 paul Exp $ */ -/* @(#)types.h 1.18 87/07/24 SMI */ /* * Rpc additions to <sys/types.h> */ -#ifndef __TYPES_RPC_HEADER__ -#define __TYPES_RPC_HEADER__ +#ifndef _RPC_TYPES_H +#define _RPC_TYPES_H #define bool_t int #define enum_t int -#define FALSE (0) -#define TRUE (1) #define __dontcare__ -1 + +#ifndef FALSE +# define FALSE (0) +#endif +#ifndef TRUE +# define TRUE (1) +#endif #ifndef NULL -# define NULL 0 +# define NULL 0 #endif -void *malloc(); #define mem_alloc(bsize) malloc(bsize) #define mem_free(ptr, bsize) free(ptr) @@ -54,10 +60,7 @@ void *malloc(); #include <sys/time.h> #ifndef INADDR_LOOPBACK -#define INADDR_LOOPBACK (u_long)0x7F000001 -#endif -#ifndef MAXHOSTNAMELEN -#define MAXHOSTNAMELEN 64 +#define INADDR_LOOPBACK (u_long)0x7F000001 #endif -#endif /* ndef __TYPES_RPC_HEADER__ */ +#endif /* !_RPC_TYPES_H */ |