diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-02-18 18:42:43 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-02-18 18:42:43 +0000 |
commit | f40d43ad1a8690cf3ad71a7e4e81f6a3312c3e3c (patch) | |
tree | 93dbdd00461065c8002e359502e7b72824910010 /mdk-stage1/dietlibc/include/rpc/types.h | |
parent | 51f99b62910e83326283c7dcbcfd2f9e42506692 (diff) | |
download | drakx-f40d43ad1a8690cf3ad71a7e4e81f6a3312c3e3c.tar drakx-f40d43ad1a8690cf3ad71a7e4e81f6a3312c3e3c.tar.gz drakx-f40d43ad1a8690cf3ad71a7e4e81f6a3312c3e3c.tar.bz2 drakx-f40d43ad1a8690cf3ad71a7e4e81f6a3312c3e3c.tar.xz drakx-f40d43ad1a8690cf3ad71a7e4e81f6a3312c3e3c.zip |
Define u_char et al. from <rpc/types.h>. The __dietlibc_u_char mechanism
is here to ensure we are not redefining types, if we were to compile
programs with -D_BSD_SOURCE (u_char et al. are defined in <sys/types.h>
int that case).
Diffstat (limited to 'mdk-stage1/dietlibc/include/rpc/types.h')
-rw-r--r-- | mdk-stage1/dietlibc/include/rpc/types.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/include/rpc/types.h b/mdk-stage1/dietlibc/include/rpc/types.h index 0e4f0b0e7..d4be65e38 100644 --- a/mdk-stage1/dietlibc/include/rpc/types.h +++ b/mdk-stage1/dietlibc/include/rpc/types.h @@ -59,6 +59,16 @@ typedef unsigned long rpcport_t; #ifndef makedev /* ie, we haven't already included it */ #include <sys/types.h> #endif + +# ifndef __dietlibc_u_char_defined +typedef char* caddr_t; +typedef uint32_t u_long; +typedef unsigned char u_char; +typedef unsigned short u_short; +typedef unsigned int u_int; +# define __dietlibc_u_char_defined +#endif + #include <sys/time.h> #include <sys/param.h> |