From c2cc0483e434ecdf756aacea674d171893b62240 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 30 May 2001 09:45:43 +0000 Subject: Update. 2001-05-29 Jakub Jelinek * 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. --- posix/sys/types.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'posix') diff --git a/posix/sys/types.h b/posix/sys/types.h index 816c0291c9..a61d99dcbc 100644 --- a/posix/sys/types.h +++ b/posix/sys/types.h @@ -30,6 +30,7 @@ __BEGIN_DECLS #include #ifdef __USE_BSD +# ifndef __u_char_defined typedef __u_char u_char; typedef __u_short u_short; typedef __u_int u_int; @@ -37,6 +38,8 @@ 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 #endif typedef __loff_t loff_t; @@ -108,8 +111,11 @@ typedef __ssize_t ssize_t; #endif #ifdef __USE_BSD +# ifndef __daddr_t_defined typedef __daddr_t daddr_t; typedef __caddr_t caddr_t; +# define __daddr_t_defined +# endif #endif #if (defined __USE_SVID || defined __USE_XOPEN) && !defined __key_t_defined -- cgit v1.2.3