move IPPORT_RESERVED from netdb.h to netinet/in.h

it's in the reserved namespace for the latter, where it seems it was
historically defined, and some programs expect to find it there.
This commit is contained in:
Rich Felker 2017-08-29 20:50:48 -04:00
parent 5f3b652afe
commit 5f7efb87a2
2 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,6 @@ struct addrinfo {
struct addrinfo *ai_next; struct addrinfo *ai_next;
}; };
#define IPPORT_RESERVED 1024
#define AI_PASSIVE 0x01 #define AI_PASSIVE 0x01
#define AI_CANONNAME 0x02 #define AI_CANONNAME 0x02
#define AI_NUMERICHOST 0x04 #define AI_NUMERICHOST 0x04

View File

@ -69,6 +69,8 @@ uint16_t htons(uint16_t);
uint32_t ntohl(uint32_t); uint32_t ntohl(uint32_t);
uint16_t ntohs(uint16_t); uint16_t ntohs(uint16_t);
#define IPPORT_RESERVED 1024
#define IPPROTO_IP 0 #define IPPROTO_IP 0
#define IPPROTO_HOPOPTS 0 #define IPPROTO_HOPOPTS 0
#define IPPROTO_ICMP 1 #define IPPROTO_ICMP 1