summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/include/rpc/types.h
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-02-18 18:42:43 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-02-18 18:42:43 +0000
commitf40d43ad1a8690cf3ad71a7e4e81f6a3312c3e3c (patch)
tree93dbdd00461065c8002e359502e7b72824910010 /mdk-stage1/dietlibc/include/rpc/types.h
parent51f99b62910e83326283c7dcbcfd2f9e42506692 (diff)
downloaddrakx-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.h10
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>