Provide in_port_t via <sys/types.h>
Provide in_port_t via <sys/types.h> if __BSD_VISIBLE for BSD compatibility. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
parent
3ce1e7901e
commit
7d22dc338d
|
@ -71,6 +71,11 @@ typedef quad_t * qaddr_t;
|
|||
typedef __uint32_t in_addr_t; /* base type for internet address */
|
||||
#define _IN_ADDR_T_DECLARED
|
||||
#endif
|
||||
|
||||
#ifndef _IN_PORT_T_DECLARED
|
||||
typedef __uint16_t in_port_t;
|
||||
#define _IN_PORT_T_DECLARED
|
||||
#endif
|
||||
#endif /* __BSD_VISIBLE */
|
||||
|
||||
#if __MISC_VISIBLE
|
||||
|
|
|
@ -25,7 +25,10 @@ typedef __uint32_t in_addr_t;
|
|||
#define _IN_ADDR_T_DECLARED
|
||||
#endif
|
||||
|
||||
typedef uint16_t in_port_t;
|
||||
#ifndef _IN_PORT_T_DECLARED
|
||||
typedef __uint16_t in_port_t;
|
||||
#define _IN_PORT_T_DECLARED
|
||||
#endif
|
||||
|
||||
#ifndef __INSIDE_CYGWIN_NET__
|
||||
|
||||
|
|
Loading…
Reference in New Issue