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:
Sebastian Huber 2016-04-18 15:29:25 +02:00 committed by Corinna Vinschen
parent 3ce1e7901e
commit 7d22dc338d
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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__