Feature test macros overhaul: sys/types.h
The u_int/u_char/etc. BSD types are needed by Cygwin's netinet/*.h headers, so they always need to be available. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
parent
ee97c4b224
commit
396942b0b5
@ -85,12 +85,13 @@ typedef quad_t * qaddr_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
|
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
|
|
||||||
# define physadr physadr_t
|
# define physadr physadr_t
|
||||||
# define quad quad_t
|
# define quad quad_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* These types are required by netinet/*.h on Cygwin */
|
||||||
|
#if __BSD_VISIBLE || defined(__CYGWIN__)
|
||||||
#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
|
#ifndef __u_char_defined
|
||||||
@ -111,11 +112,13 @@ typedef unsigned long u_long;
|
|||||||
#endif
|
#endif
|
||||||
#define _BSDTYPES_DEFINED
|
#define _BSDTYPES_DEFINED
|
||||||
#endif
|
#endif
|
||||||
|
#endif /*__BSD_VISIBLE || __CYGWIN__ */
|
||||||
|
|
||||||
|
#if __MISC_VISIBLE
|
||||||
typedef unsigned short ushort; /* System V compatibility */
|
typedef unsigned short ushort; /* System V compatibility */
|
||||||
typedef unsigned int uint; /* System V compatibility */
|
typedef unsigned int uint; /* System V compatibility */
|
||||||
typedef unsigned long ulong; /* System V compatibility */
|
typedef unsigned long ulong; /* System V compatibility */
|
||||||
# endif /*__BSD_VISIBLE */
|
#endif
|
||||||
|
|
||||||
#ifndef __clock_t_defined
|
#ifndef __clock_t_defined
|
||||||
typedef _CLOCK_T_ clock_t;
|
typedef _CLOCK_T_ clock_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user