POSIX says IPPORT_RESERVED is in <netdb.h>.

In <netdb.h>:

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netdb.h.html

Not in <netinet/in.h>:

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html

Change-Id: Ie34cdb80eeb1443cf292944f3c68d8383aee2295
This commit is contained in:
Elliott Hughes 2016-08-12 10:38:35 -07:00
parent 166f875eab
commit e43778880e
3 changed files with 3 additions and 2 deletions

View file

@ -29,6 +29,7 @@
#include <netinet/in.h>
#include <errno.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <string.h>

View file

@ -192,6 +192,8 @@ struct addrinfo {
*/
#define SCOPE_DELIMITER '%'
#define IPPORT_RESERVED 1024
__BEGIN_DECLS
/* BIONIC-BEGIN */

View file

@ -40,8 +40,6 @@
__BEGIN_DECLS
#define IPPORT_RESERVED 1024
#define INET_ADDRSTRLEN 16
typedef uint16_t in_port_t;