move IPPORT_RESERVED from netdb.h to netinet/in.h
authorRich Felker <dalias@aerifal.cx>
Wed, 30 Aug 2017 00:50:48 +0000 (20:50 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 30 Aug 2017 00:50:48 +0000 (20:50 -0400)
it's in the reserved namespace for the latter, where it seems it was
historically defined, and some programs expect to find it there.

include/netdb.h
include/netinet/in.h

index 967ca21..adde2c5 100644 (file)
@@ -24,8 +24,6 @@ struct addrinfo {
        struct addrinfo *ai_next;
 };
 
-#define IPPORT_RESERVED 1024
-
 #define AI_PASSIVE      0x01
 #define AI_CANONNAME    0x02
 #define AI_NUMERICHOST  0x04
index 0d4d04a..84982f5 100644 (file)
@@ -69,6 +69,8 @@ uint16_t htons(uint16_t);
 uint32_t ntohl(uint32_t);
 uint16_t ntohs(uint16_t);
 
+#define IPPORT_RESERVED 1024
+
 #define IPPROTO_IP       0
 #define IPPROTO_HOPOPTS  0
 #define IPPROTO_ICMP     1