1 | /* |
1 | /* |
2 | netcompat.h -- network compatibility header |
2 | netcompat.h -- network compatibility header |
|
|
3 | Copyright (C) 2003 Marc Lehmann <pcg@goof.com> |
3 | |
4 | |
4 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by |
6 | it under the terms of the GNU General Public License as published by |
6 | the Free Software Foundation; either version 2 of the License, or |
7 | the Free Software Foundation; either version 2 of the License, or |
7 | (at your option) any later version. |
8 | (at your option) any later version. |
… | |
… | |
23 | |
24 | |
24 | #include <sys/socket.h> |
25 | #include <sys/socket.h> |
25 | #ifdef HAVE_NETINET_IN_H |
26 | #ifdef HAVE_NETINET_IN_H |
26 | # include <netinet/in.h> |
27 | # include <netinet/in.h> |
27 | #endif |
28 | #endif |
|
|
29 | #ifdef HAVE_ARPA_INET_H |
28 | #include <arpa/inet.h> |
30 | # include <arpa/inet.h> |
|
|
31 | #endif |
29 | #include <net/if.h> |
32 | #include <net/if.h> |
30 | #ifdef HAVE_NETINET_IN_SYSTM_H |
33 | #ifdef HAVE_NETINET_IN_SYSTM_H |
31 | # include <netinet/in_systm.h> |
34 | # include <netinet/in_systm.h> |
32 | #endif |
35 | #endif |
33 | #ifdef HAVE_NETINET_IP_H |
36 | #ifdef HAVE_NETINET_IP_H |
34 | # include <netinet/ip.h> |
37 | # include <netinet/ip.h> |
35 | #endif |
38 | #endif |
36 | |
39 | |
37 | #ifndef IPTOS_LOWCOST |
40 | #ifndef IPTOS_MINCOST |
38 | # define IPTOS_LOWCOST 0x02 |
41 | # define IPTOS_MINCOST 0x02 |
39 | #endif |
42 | #endif |
40 | #ifndef IPTOS_RELIABILITY |
43 | #ifndef IPTOS_RELIABILITY |
41 | # define IPTOS_RELIABILITY 0x04 |
44 | # define IPTOS_RELIABILITY 0x04 |
42 | #endif |
45 | #endif |
43 | #ifndef IPTOS_THROUGHPUT |
46 | #ifndef IPTOS_THROUGHPUT |