Add support for proxying through an external command.
[tinc] / have.h
1 /*
2     have.h -- include headers which are known to exist
3     Copyright (C) 1998-2005 Ivo Timmermans
4                   2003-2011 Guus Sliepen <guus@tinc-vpn.org>
5
6     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10
11     This program is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License along
17     with this program; if not, write to the Free Software Foundation, Inc.,
18     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21 #ifndef __TINC_HAVE_H__
22 #define __TINC_HAVE_H__
23
24 #ifdef HAVE_MINGW
25 #ifdef WITH_WINDOWS2000
26 #define WINVER Windows2000
27 #else
28 #define WINVER WindowsXP
29 #endif
30 #endif
31
32 #include <stdio.h>
33 #include <stdlib.h>
34 #include <stdarg.h>
35 #include <string.h>
36 #include <ctype.h>
37 #include <signal.h>
38 #include <errno.h>
39 #include <fcntl.h>
40 #include <unistd.h>
41
42 #ifdef HAVE_MINGW
43 #include <w32api.h>
44 #include <windows.h>
45 #include <ws2tcpip.h>
46 #endif
47
48 #ifdef HAVE_STDBOOL_H
49 #include <stdbool.h>
50 #endif
51
52 #ifdef HAVE_TERMIOS_H
53 #include <termios.h>
54 #endif
55
56 #ifdef HAVE_INTTYPES_H
57 #include <inttypes.h>
58 #endif
59
60 #ifdef HAVE_ALLOCA_H
61 #include <alloca.h>
62 #endif
63
64 /* Include system specific headers */
65
66 #ifdef HAVE_SYSLOG_H
67 #include <syslog.h>
68 #endif
69
70 #ifdef HAVE_SYS_TIME_H
71 #include <sys/time.h>
72 #endif
73
74 #ifdef HAVE_TIME_H
75 #include <time.h>
76 #endif
77
78 #ifdef HAVE_SYS_TYPES_H
79 #include <sys/types.h>
80 #endif
81
82 #ifdef HAVE_SYS_STAT_H
83 #include <sys/stat.h>
84 #endif
85
86 #ifdef HAVE_SYS_FILE_H
87 #include <sys/file.h>
88 #endif
89
90 #ifdef HAVE_SYS_WAIT_H
91 #include <sys/wait.h>
92 #endif
93
94 #ifdef HAVE_SYS_IOCTL_H
95 #include <sys/ioctl.h>
96 #endif
97
98 #ifdef HAVE_SYS_PARAM_H
99 #include <sys/param.h>
100 #endif
101
102 #ifdef HAVE_SYS_RESOURCE_H
103 #include <sys/resource.h>
104 #endif
105
106 #ifdef HAVE_SYS_UIO_H
107 #include <sys/uio.h>
108 #endif
109
110 #ifdef HAVE_DIRENT_H
111 #include <dirent.h>
112 #endif
113
114 /* SunOS really wants sys/socket.h BEFORE net/if.h,
115    and FreeBSD wants these lines below the rest. */
116
117 #ifdef HAVE_NETDB_H
118 #include <netdb.h>
119 #endif
120
121 #ifdef HAVE_SYS_SOCKET_H
122 #include <sys/socket.h>
123 #endif
124
125 #ifdef HAVE_NET_IF_H
126 #include <net/if.h>
127 #endif
128
129 #ifdef HAVE_NET_IF_TYPES_H
130 #include <net/if_types.h>
131 #endif
132
133 #ifdef HAVE_NET_IF_TUN_H
134 #include <net/if_tun.h>
135 #endif
136
137 #ifdef HAVE_NET_TUN_IF_TUN_H
138 #include <net/tun/if_tun.h>
139 #endif
140
141 #ifdef HAVE_NET_IF_TAP_H
142 #include <net/if_tap.h>
143 #endif
144
145 #ifdef HAVE_NET_TAP_IF_TAP_H
146 #include <net/tap/if_tap.h>
147 #endif
148
149 #ifdef HAVE_NETINET_IN_SYSTM_H
150 #include <netinet/in_systm.h>
151 #endif
152
153 #ifdef HAVE_NETINET_IN_H
154 #include <netinet/in.h>
155 #endif
156
157 #ifdef HAVE_ARPA_INET_H
158 #include <arpa/inet.h>
159 #endif
160
161 #ifdef HAVE_NETINET_IP_H
162 #include <netinet/ip.h>
163 #endif
164
165 #ifdef HAVE_NETINET_TCP_H
166 #include <netinet/tcp.h>
167 #endif
168
169 #ifdef HAVE_NETINET_IN6_H
170 #include <netinet/in6.h>
171 #endif
172
173 #ifdef HAVE_NETINET_IP6_H
174 #include <netinet/ip6.h>
175 #endif
176
177 #ifdef HAVE_NET_ETHERNET_H
178 #include <net/ethernet.h>
179 #endif
180
181 #ifdef HAVE_NET_IF_ARP_H
182 #include <net/if_arp.h>
183 #endif
184
185 #ifdef HAVE_NETINET_IP_ICMP_H
186 #include <netinet/ip_icmp.h>
187 #endif
188
189 #ifdef HAVE_NETINET_ICMP6_H
190 #include <netinet/icmp6.h>
191 #endif
192
193 #ifdef HAVE_NETINET_IF_ETHER_H
194 #include <netinet/if_ether.h>
195 #endif
196
197 #endif /* __TINC_SYSTEM_H__ */