2 have.h -- include headers which are known to exist
3 Copyright (C) 1998-2005 Ivo Timmermans
4 2003-2009 Guus Sliepen <guus@tinc-vpn.org>
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.
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.
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.
21 #ifndef __TINC_HAVE_H__
22 #define __TINC_HAVE_H__
25 #ifdef WITH_WINDOWS2000
26 #define WINVER Windows2000
28 #define WINVER WindowsXP
30 #define WIN32_LEAN_AND_MEAN
57 #ifdef HAVE_INTTYPES_H
65 /* Include system specific headers */
71 #ifdef HAVE_SYS_TIME_H
79 #ifdef HAVE_SYS_TYPES_H
80 #include <sys/types.h>
83 #ifdef HAVE_SYS_STAT_H
87 #ifdef HAVE_SYS_FILE_H
91 #ifdef HAVE_SYS_WAIT_H
95 #ifdef HAVE_SYS_IOCTL_H
96 #include <sys/ioctl.h>
99 #ifdef HAVE_SYS_PARAM_H
100 #include <sys/param.h>
103 #ifdef HAVE_SYS_UIO_H
115 /* SunOS really wants sys/socket.h BEFORE net/if.h,
116 and FreeBSD wants these lines below the rest. */
122 #ifdef HAVE_SYS_SOCKET_H
123 #include <sys/socket.h>
130 #ifdef HAVE_NET_IF_TYPES_H
131 #include <net/if_types.h>
134 #ifdef HAVE_NET_IF_TUN_H
135 #include <net/if_tun.h>
138 #ifdef HAVE_NET_IF_TAP_H
139 #include <net/if_tap.h>
142 #ifdef HAVE_NETINET_IN_SYSTM_H
143 #include <netinet/in_systm.h>
146 #ifdef HAVE_NETINET_IN_H
147 #include <netinet/in.h>
150 #ifdef HAVE_ARPA_INET_H
151 #include <arpa/inet.h>
154 #ifdef HAVE_NETINET_IP_H
155 #include <netinet/ip.h>
158 #ifdef HAVE_NETINET_TCP_H
159 #include <netinet/tcp.h>
162 #ifdef HAVE_NETINET_IN6_H
163 #include <netinet/in6.h>
166 #ifdef HAVE_NETINET_IP6_H
167 #include <netinet/ip6.h>
170 #ifdef HAVE_NET_ETHERNET_H
171 #include <net/ethernet.h>
174 #ifdef HAVE_NET_IF_ARP_H
175 #include <net/if_arp.h>
178 #ifdef HAVE_NETINET_IP_ICMP_H
179 #include <netinet/ip_icmp.h>
182 #ifdef HAVE_NETINET_ICMP6_H
183 #include <netinet/icmp6.h>
186 #ifdef HAVE_NETINET_IF_ETHER_H
187 #include <netinet/if_ether.h>
190 #endif /* __TINC_SYSTEM_H__ */