5 have.h -- include headers which are known to exist
6 Copyright (C) 1998-2005 Ivo Timmermans
7 2003-2021 Guus Sliepen <guus@tinc-vpn.org>
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License along
20 with this program; if not, write to the Free Software Foundation, Inc.,
21 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #define _WIN32_WINNT 0x0600
27 #define WIN32_LEAN_AND_MEAN
55 #ifdef HAVE_INTTYPES_H
59 /* Include system specific headers */
69 #ifdef HAVE_SYS_TIME_H
74 #ifdef HAVE_SYS_TYPES_H
75 #include <sys/types.h>
78 #ifdef HAVE_SYS_STAT_H
82 #ifdef HAVE_SYS_FILE_H
86 #ifdef HAVE_SYS_MMAN_H
90 #ifdef HAVE_SYS_WAIT_H
94 #ifdef HAVE_SYS_IOCTL_H
95 #include <sys/ioctl.h>
98 #ifdef HAVE_SYS_PARAM_H
99 #include <sys/param.h>
102 #ifdef HAVE_SYS_RESOURCE_H
103 #include <sys/resource.h>
114 /* SunOS really wants sys/socket.h BEFORE net/if.h,
115 and FreeBSD wants these lines below the rest. */
121 #ifdef HAVE_SYS_SOCKET_H
122 #include <sys/socket.h>
129 #ifdef HAVE_NET_IF_TYPES_H
130 #include <net/if_types.h>
133 #ifdef HAVE_NET_IF_TUN_H
134 #include <net/if_tun.h>
137 #ifdef HAVE_NET_TUN_IF_TUN_H
138 #include <net/tun/if_tun.h>
141 #ifdef HAVE_NET_IF_TAP_H
142 #include <net/if_tap.h>
145 #ifdef HAVE_NET_TAP_IF_TAP_H
146 #include <net/tap/if_tap.h>
149 #ifdef HAVE_NETINET_IN_SYSTM_H
150 #include <netinet/in_systm.h>
153 #ifdef HAVE_NETINET_IN_H
154 #include <netinet/in.h>
157 #ifdef HAVE_ARPA_INET_H
158 #include <arpa/inet.h>
161 #ifdef HAVE_NETINET_IP_H
162 #include <netinet/ip.h>
165 #ifdef HAVE_NETINET_TCP_H
166 #include <netinet/tcp.h>
169 #ifdef HAVE_NETINET_IN6_H
170 #include <netinet/in6.h>
173 #ifdef HAVE_NETINET_IP6_H
174 #include <netinet/ip6.h>
177 #ifdef HAVE_NET_ETHERNET_H
178 #include <net/ethernet.h>
181 #ifdef HAVE_NET_IF_ARP_H
182 #include <net/if_arp.h>
185 #ifdef HAVE_NETINET_IP_ICMP_H
186 #include <netinet/ip_icmp.h>
189 #ifdef HAVE_NETINET_ICMP6_H
190 #include <netinet/icmp6.h>
193 #ifdef HAVE_NETINET_IF_ETHER_H
194 #include <netinet/if_ether.h>
197 #ifdef HAVE_ARPA_NAMESER_H
198 #include <arpa/nameser.h>
205 #ifdef HAVE_LINUX_IF_TUN_H
206 #include <linux/if_tun.h>