2 have.h -- include headers which are known to exist
3 Copyright (C) 1998-2005 Ivo Timmermans
4 2003-2006 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
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __TINC_HAVE_H__
22 #define __TINC_HAVE_H__
42 #ifdef HAVE_INTTYPES_H
50 /* Include system specific headers */
56 #ifdef HAVE_SYS_TIME_H
60 #ifdef HAVE_SYS_TYPES_H
61 #include <sys/types.h>
64 #ifdef HAVE_SYS_STAT_H
68 #ifdef HAVE_SYS_FILE_H
72 #ifdef HAVE_SYS_WAIT_H
76 #ifdef HAVE_SYS_IOCTL_H
77 #include <sys/ioctl.h>
80 #ifdef HAVE_SYS_PARAM_H
81 #include <sys/param.h>
88 /* SunOS really wants sys/socket.h BEFORE net/if.h,
89 and FreeBSD wants these lines below the rest. */
95 #ifdef HAVE_SYS_SOCKET_H
96 #include <sys/socket.h>
103 #ifdef HAVE_NET_IF_TYPES_H
104 #include <net/if_types.h>
107 #ifdef HAVE_NET_IF_TUN_H
108 #include <net/if_tun.h>
111 #ifdef HAVE_NET_IF_TAP_H
112 #include <net/if_tap.h>
115 #ifdef HAVE_NETINET_IN_SYSTM_H
116 #include <netinet/in_systm.h>
119 #ifdef HAVE_NETINET_IN_H
120 #include <netinet/in.h>
123 #ifdef HAVE_ARPA_INET_H
124 #include <arpa/inet.h>
127 #ifdef HAVE_NETINET_IP_H
128 #include <netinet/ip.h>
131 #ifdef HAVE_NETINET_TCP_H
132 #include <netinet/tcp.h>
135 #ifdef HAVE_NETINET_IN6_H
136 #include <netinet/in6.h>
139 #ifdef HAVE_NETINET_IP6_H
140 #include <netinet/ip6.h>
143 #ifdef HAVE_NET_ETHERNET_H
144 #include <net/ethernet.h>
147 #ifdef HAVE_NET_IF_ARP_H
148 #include <net/if_arp.h>
151 #ifdef HAVE_NETINET_IP_ICMP_H
152 #include <netinet/ip_icmp.h>
155 #ifdef HAVE_NETINET_ICMP6_H
156 #include <netinet/icmp6.h>
159 #ifdef HAVE_NETINET_IF_ETHER_H
160 #include <netinet/if_ether.h>
165 #include <winsock2.h>
168 #endif /* __TINC_SYSTEM_H__ */