8 /* added this include by Mats Petersson */
9 #include <linux/socket.h>
11 #include <klibc/extern.h>
13 #include <endian.h> /* Must be included *before* <linux/in.h> */
17 # define htons(x) __cpu_to_be16(x)
20 # define ntohs(x) __be16_to_cpu(x)
23 # define htonl(x) __cpu_to_be32(x)
26 # define ntohl(x) __be32_to_cpu(x)
29 #define IPPORT_RESERVED 1024
31 __extern int bindresvport (int sd, struct sockaddr_in *sin);
33 #endif /* _NETINET_IN_H */