* libc/include/sys/types.h (u_char): Add redefinition guard.
(u_short, u_int, u_long, caddr_t, daddr_t): Ditto.
This commit is contained in:
parent
0cbbf4c8bc
commit
ddbe02c418
@ -1,3 +1,8 @@
|
|||||||
|
2013-07-05 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
|
||||||
|
|
||||||
|
* libc/include/sys/types.h (u_char): Add redefinition guard.
|
||||||
|
(u_short, u_int, u_long, caddr_t, daddr_t): Ditto.
|
||||||
|
|
||||||
2013-07-02 Joey Ye <joey.ye@arm.com>
|
2013-07-02 Joey Ye <joey.ye@arm.com>
|
||||||
|
|
||||||
Lite exit support.
|
Lite exit support.
|
||||||
|
@ -89,10 +89,22 @@ typedef quad_t * qaddr_t;
|
|||||||
|
|
||||||
#ifndef _BSDTYPES_DEFINED
|
#ifndef _BSDTYPES_DEFINED
|
||||||
/* also defined in mingw/gmon.h and in w32api/winsock[2].h */
|
/* also defined in mingw/gmon.h and in w32api/winsock[2].h */
|
||||||
|
#ifndef __u_char_defined
|
||||||
typedef unsigned char u_char;
|
typedef unsigned char u_char;
|
||||||
|
#define __u_char_defined
|
||||||
|
#endif
|
||||||
|
#ifndef __u_short_defined
|
||||||
typedef unsigned short u_short;
|
typedef unsigned short u_short;
|
||||||
|
#define __u_short_defined
|
||||||
|
#endif
|
||||||
|
#ifndef __u_int_defined
|
||||||
typedef unsigned int u_int;
|
typedef unsigned int u_int;
|
||||||
|
#define __u_int_defined
|
||||||
|
#endif
|
||||||
|
#ifndef __u_long_defined
|
||||||
typedef unsigned long u_long;
|
typedef unsigned long u_long;
|
||||||
|
#define __u_long_defined
|
||||||
|
#endif
|
||||||
#define _BSDTYPES_DEFINED
|
#define _BSDTYPES_DEFINED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -126,8 +138,14 @@ struct itimerspec {
|
|||||||
struct timespec it_value; /* Timer expiration */
|
struct timespec it_value; /* Timer expiration */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef __daddr_t_defined
|
||||||
typedef long daddr_t;
|
typedef long daddr_t;
|
||||||
|
#define __daddr_t_defined
|
||||||
|
#endif
|
||||||
|
#ifndef __caddr_t_defined
|
||||||
typedef char * caddr_t;
|
typedef char * caddr_t;
|
||||||
|
#define __caddr_t_defined
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef __CYGWIN__
|
#ifndef __CYGWIN__
|
||||||
#if defined(__MS_types__) || defined(__rtems__) || \
|
#if defined(__MS_types__) || defined(__rtems__) || \
|
||||||
|
Loading…
Reference in New Issue
Block a user