summary refs log tree commit diff
path: root/sunrpc/rpc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-05-30 09:45:43 +0000
committerUlrich Drepper <drepper@redhat.com>2001-05-30 09:45:43 +0000
commitc2cc0483e434ecdf756aacea674d171893b62240 (patch)
tree0836c03ba32d6dbc24d5f1cb465f689062dd0ff9 /sunrpc/rpc
parenta18b5b499e4b250df9a6801d8594a4314ef498de (diff)
downloadglibc-c2cc0483e434ecdf756aacea674d171893b62240.tar.gz
glibc-c2cc0483e434ecdf756aacea674d171893b62240.tar.xz
glibc-c2cc0483e434ecdf756aacea674d171893b62240.zip
Update.
2001-05-29  Jakub Jelinek  <jakub@redhat.com>

	* sunrpc/rpc/types.h (u_char, u_short, u_int, u_long, quad_t,
	u_quad_t, fsid_t, daddr_t, caddr_t): Make sure the types are defined.
	* posix/sys/types.h (u_char, u_short, u_int, u_long, quad_t,
	u_quad_t, fsid_t, daddr_t, caddr_t): Protect the __USE_BSD typedefs
	against multiple definition.
Diffstat (limited to 'sunrpc/rpc')
-rw-r--r--sunrpc/rpc/types.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sunrpc/rpc/types.h b/sunrpc/rpc/types.h
index e2e8402be9..8eff8e718e 100644
--- a/sunrpc/rpc/types.h
+++ b/sunrpc/rpc/types.h
@@ -63,6 +63,23 @@ typedef unsigned long rpcport_t;
 #ifndef makedev /* ie, we haven't already included it */
 #include <sys/types.h>
 #endif
+
+#ifndef __u_char_defined
+typedef __u_char u_char;
+typedef __u_short u_short;
+typedef __u_int u_int;
+typedef __u_long u_long;
+typedef __quad_t quad_t;
+typedef __u_quad_t u_quad_t;
+typedef __fsid_t fsid_t;
+# define __u_char_defined
+#endif
+#ifndef __daddr_t_defined
+typedef __daddr_t daddr_t;
+typedef __caddr_t caddr_t;
+# define __daddr_t_defined
+#endif
+
 #include <sys/time.h>
 #include <sys/param.h>