Readd quotes.
[tinc] / system.h
1 /*
2     system.h -- system headers
3     Copyright (C) 1998-2003 Ivo Timmermans <ivo@o2w.nl>
4                        2003 Guus Sliepen <guus@sliepen.eu.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
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
19 */
20
21 #ifndef __TINC_SYSTEM_H__
22 #define __TINC_SYSTEM_H__
23
24 #include "config.h"
25
26 /* Include standard headers */
27
28 #include <stdio.h>
29 #include <stdlib.h>
30 #include <stdarg.h>
31 #include <string.h>
32 #include <ctype.h>
33 #include <signal.h>
34 #include <errno.h>
35 #include <fcntl.h>
36 #include <unistd.h>
37
38 #ifdef HAVE_STDBOOL_H
39 #include <stdbool.h>
40 #else
41 typedef int bool;
42 #define true 1
43 #define false 0
44 #endif
45
46 #ifdef HAVE_TERMIOS_H
47 #include <termios.h>
48 #endif
49
50 #ifdef HAVE_INTTYPES_H
51 #include <inttypes.h>
52 #endif
53
54 /* Include system specific headers */
55
56 #ifdef HAVE_SYSLOG_H
57 #include <syslog.h>
58 #endif
59
60 #ifdef HAVE_SYS_TIME_H
61 #include <sys/time.h>
62 #endif
63
64 #ifdef HAVE_SYS_TYPES_H
65 #include <sys/types.h>
66 #endif
67
68 #ifdef HAVE_SYS_STAT_H
69 #include <sys/stat.h>
70 #endif
71
72 #ifdef HAVE_SYS_FILE_H
73 #include <sys/file.h>
74 #endif
75
76 #ifdef HAVE_SYS_WAIT_H
77 #include <sys/wait.h>
78 #endif
79
80 #ifdef HAVE_SYS_IOCTL_H
81 #include <sys/ioctl.h>
82 #endif
83
84 #ifdef HAVE_SYS_PARAM_H
85 #include <sys/param.h>
86 #endif
87
88 /* SunOS really wants sys/socket.h BEFORE net/if.h,
89    and FreeBSD wants these lines below the rest. */
90
91 #ifdef HAVE_NETDB_H
92 #include <netdb.h>
93 #endif
94
95 #ifdef HAVE_SYS_SOCKET_H
96 #include <sys/socket.h>
97 #endif
98
99 #ifdef HAVE_NET_IF_H
100 #include <net/if.h>
101 #endif
102
103 #ifdef HAVE_NETINET_IN_SYSTM_H
104 #include <netinet/in_systm.h>
105 #endif
106
107 #ifdef HAVE_NETINET_IN_H
108 #include <netinet/in.h>
109 #endif
110
111 #ifdef HAVE_ARPA_INET_H
112 #include <arpa/inet.h>
113 #endif
114
115 #ifdef HAVE_NETINET_IP_H
116 #include <netinet/ip.h>
117 #endif
118
119 #ifdef HAVE_NETINET_TCP_H
120 #include <netinet/tcp.h>
121 #endif
122
123 #ifdef HAVE_NETINET_IN6_H
124 #include <netinet/in6.h>
125 #endif
126
127 #ifdef HAVE_NETINET_IP6_H
128 #include <netinet/ip6.h>
129 #endif
130
131 #ifdef HAVE_MINGW
132 #include <windows.h>
133 #include <winsock2.h>
134 #endif
135
136 /* Include localisation support */
137
138 #include "gettext.h"
139
140 #ifndef HAVE_STRSIGNAL
141 # define strsignal(p) ""
142 #endif
143
144 /* Other functions */
145
146 #include "dropin.h"
147
148 #ifndef HAVE_SOCKLEN_T
149 typedef int socklen_t;
150 #endif
151
152 #endif /* __TINC_SYSTEM_H__ */