mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
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.
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user