mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-06 11:22:15 +02:00
oups..
This commit is contained in:
parent
45e4b7cceb
commit
3b3a48f4a3
18
nx/external/bsd/include/netinet/in.h
vendored
18
nx/external/bsd/include/netinet/in.h
vendored
@ -45,6 +45,15 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <machine/endian.h>
|
#include <machine/endian.h>
|
||||||
|
|
||||||
|
#ifndef _IN_ADDR_T_DECLARED
|
||||||
|
typedef __uint32_t in_addr_t;
|
||||||
|
#define _IN_ADDR_T_DECLARED
|
||||||
|
#endif
|
||||||
|
#ifndef _IN_PORT_T_DECLARED
|
||||||
|
typedef __uint16_t in_port_t;
|
||||||
|
#define _IN_PORT_T_DECLARED
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Protocols common to RFC 1700, POSIX, and X/Open. */
|
/* Protocols common to RFC 1700, POSIX, and X/Open. */
|
||||||
#define IPPROTO_IP 0 /* dummy for IP */
|
#define IPPROTO_IP 0 /* dummy for IP */
|
||||||
#define IPPROTO_ICMP 1 /* control message protocol */
|
#define IPPROTO_ICMP 1 /* control message protocol */
|
||||||
@ -72,15 +81,6 @@ typedef __socklen_t socklen_t;
|
|||||||
#define _SOCKLEN_T_DECLARED
|
#define _SOCKLEN_T_DECLARED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _IN_ADDR_T_DECLARED
|
|
||||||
typedef __uint32_t in_addr_t;
|
|
||||||
#define _IN_ADDR_T_DECLARED
|
|
||||||
#endif
|
|
||||||
#ifndef _IN_PORT_T_DECLARED
|
|
||||||
typedef __uint16_t in_port_t;
|
|
||||||
#define _IN_PORT_T_DECLARED
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <sys/_sockaddr_storage.h>
|
#include <sys/_sockaddr_storage.h>
|
||||||
|
|
||||||
/* Socket address, internet style. */
|
/* Socket address, internet style. */
|
||||||
|
Loading…
Reference in New Issue
Block a user