2 system.h -- system headers
3 Copyright (C) 1998-2003 Ivo Timmermans <ivo@o2w.nl>
4 2003 Guus Sliepen <guus@sliepen.eu.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_SYSTEM_H__
22 #define __TINC_SYSTEM_H__
26 /* Include standard headers */
43 #ifdef HAVE_INTTYPES_H
47 /* Include system specific headers */
53 #ifdef HAVE_SYS_TIME_H
57 #ifdef HAVE_SYS_TYPES_H
58 #include <sys/types.h>
61 #ifdef HAVE_SYS_STAT_H
65 #ifdef HAVE_SYS_FILE_H
69 #ifdef HAVE_SYS_WAIT_H
73 #ifdef HAVE_SYS_IOCTL_H
74 #include <sys/ioctl.h>
77 #ifdef HAVE_SYS_PARAM_H
78 #include <sys/param.h>
81 /* SunOS really wants sys/socket.h BEFORE net/if.h,
82 and FreeBSD wants these lines below the rest. */
88 #ifdef HAVE_ARPA_INET_H
89 #include <arpa/inet.h>
92 #ifdef HAVE_SYS_SOCKET_H
93 #include <sys/socket.h>
100 #ifdef HAVE_NETINET_IN_SYSTM_H
101 #include <netinet/in_systm.h>
104 #ifdef HAVE_NETINET_IN_H
105 #include <netinet/in.h>
108 #ifdef HAVE_NETINET_IP_H
109 #include <netinet/ip.h>
112 #ifdef HAVE_NETINET_TCP_H
113 #include <netinet/tcp.h>
121 /* Include localisation support */
125 #ifndef HAVE_STRSIGNAL
126 # define strsignal(p) ""
129 /* Other functions */
133 #ifndef HAVE_SOCKLEN_T
134 typedef int socklen_t;
137 #endif /* __TINC_SYSTEM_H__ */