chiark / gitweb /
[PATCH] added klibc version 0.82 (cvs tree) to the udev tree.
[elogind.git] / klibc / klibc / include / netinet / in.h
1 /*
2  * netinet/in.h
3  */
4
5 #ifndef _NETINET_IN_H
6 #define _NETINET_IN_H
7
8 /* added this include by Mats Petersson */
9 #include <linux/socket.h>
10
11 #include <klibc/extern.h>
12 #include <stdint.h>
13 #include <endian.h>             /* Must be included *before* <linux/in.h> */
14 #include <linux/in.h>
15
16 #ifndef htons
17 # define htons(x)       __cpu_to_be16(x)
18 #endif
19 #ifndef ntohs
20 # define ntohs(x)       __be16_to_cpu(x)
21 #endif
22 #ifndef htonl
23 # define htonl(x)       __cpu_to_be32(x)
24 #endif
25 #ifndef ntohl
26 # define ntohl(x)       __be32_to_cpu(x)
27 #endif
28
29 #define IPPORT_RESERVED 1024
30
31 __extern int bindresvport (int sd, struct sockaddr_in *sin);
32
33 #endif /* _NETINET_IN_H */