Fix links in documenation.
[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 <winsock2.h>
45 #include <windows.h>
46 #include <ws2tcpip.h>
47 #endif
48
49 #ifdef HAVE_STDBOOL_H
50 #include <stdbool.h>
51 #endif
52
53 #ifdef HAVE_TERMIOS_H
54 #include <termios.h>
55 #endif
56
57 #ifdef HAVE_INTTYPES_H
58 #include <inttypes.h>
59 #endif
60
61 #ifdef HAVE_ALLOCA_H
62 #include <alloca.h>
63 #endif
64
65 /* Include system specific headers */
66
67 #ifdef HAVE_SYSLOG_H
68 #include <syslog.h>
69 #endif
70
71 #ifdef HAVE_SYS_TIME_H
72 #include <sys/time.h>
73 #endif
74
75 #ifdef HAVE_TIME_H
76 #include <time.h>
77 #endif
78
79 #ifdef HAVE_SYS_TYPES_H
80 #include <sys/types.h>
81 #endif
82
83 #ifdef HAVE_SYS_STAT_H
84 #include <sys/stat.h>
85 #endif
86
87 #ifdef HAVE_SYS_FILE_H
88 #include <sys/file.h>
89 #endif
90
91 #ifdef HAVE_SYS_WAIT_H
92 #include <sys/wait.h>
93 #endif
94
95 #ifdef HAVE_SYS_IOCTL_H
96 #include <sys/ioctl.h>
97 #endif
98
99 #ifdef HAVE_SYS_PARAM_H
100 #include <sys/param.h>
101 #endif
102
103 #ifdef HAVE_SYS_RESOURCE_H
104 #include <sys/resource.h>
105 #endif
106
107 #ifdef HAVE_SYS_UIO_H
108 #include <sys/uio.h>
109 #endif
110
111 #ifdef HAVE_DIRENT_H
112 #include <dirent.h>
113 #endif
114
115 /* SunOS really wants sys/socket.h BEFORE net/if.h,
116    and FreeBSD wants these lines below the rest. */
117
118 #ifdef HAVE_NETDB_H
119 #include <netdb.h>
120 #endif
121
122 #ifdef HAVE_SYS_SOCKET_H
123 #include <sys/socket.h>
124 #endif
125
126 #ifdef HAVE_NET_IF_H
127 #include <net/if.h>
128 #endif
129
130 #ifdef HAVE_NET_IF_TYPES_H
131 #include <net/if_types.h>
132 #endif
133
134 #ifdef HAVE_NET_IF_TUN_H
135 #include <net/if_tun.h>
136 #endif
137
138 #ifdef HAVE_NET_TUN_IF_TUN_H
139 #include <net/tun/if_tun.h>
140 #endif
141
142 #ifdef HAVE_NET_IF_TAP_H
143 #include <net/if_tap.h>
144 #endif
145
146 #ifdef HAVE_NET_TAP_IF_TAP_H
147 #include <net/tap/if_tap.h>
148 #endif
149
150 #ifdef HAVE_NETINET_IN_SYSTM_H
151 #include <netinet/in_systm.h>
152 #endif
153
154 #ifdef HAVE_NETINET_IN_H
155 #include <netinet/in.h>
156 #endif
157
158 #ifdef HAVE_ARPA_INET_H
159 #include <arpa/inet.h>
160 #endif
161
162 #ifdef HAVE_NETINET_IP_H
163 #include <netinet/ip.h>
164 #endif
165
166 #ifdef HAVE_NETINET_TCP_H
167 #include <netinet/tcp.h>
168 #endif
169
170 #ifdef HAVE_NETINET_IN6_H
171 #include <netinet/in6.h>
172 #endif
173
174 #ifdef HAVE_NETINET_IP6_H
175 #include <netinet/ip6.h>
176 #endif
177
178 #ifdef HAVE_NET_ETHERNET_H
179 #include <net/ethernet.h>
180 #endif
181
182 #ifdef HAVE_NET_IF_ARP_H
183 #include <net/if_arp.h>
184 #endif
185
186 #ifdef HAVE_NETINET_IP_ICMP_H
187 #include <netinet/ip_icmp.h>
188 #endif
189
190 #ifdef HAVE_NETINET_ICMP6_H
191 #include <netinet/icmp6.h>
192 #endif
193
194 #ifdef HAVE_NETINET_IF_ETHER_H
195 #include <netinet/if_ether.h>
196 #endif
197
198 #endif /* __TINC_SYSTEM_H__ */