]> git.meshlink.io Git - meshlink/blob - src/have.h
Remove unused/obsolete checks from configure.ac and unused functions from dropin.c.
[meshlink] / src / have.h
1 #ifndef MESHLINK_HAVE_H
2 #define MESHLINK_HAVE_H
3
4 /*
5     have.h -- include headers which are known to exist
6     Copyright (C) 2014, 2017 Guus Sliepen <guus@meshlink.io>
7
8     This program is free software; you can redistribute it and/or modify
9     it under the terms of the GNU General Public License as published by
10     the Free Software Foundation; either version 2 of the License, or
11     (at your option) any later version.
12
13     This program is distributed in the hope that it will be useful,
14     but WITHOUT ANY WARRANTY; without even the implied warranty of
15     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16     GNU General Public License for more details.
17
18     You should have received a copy of the GNU General Public License along
19     with this program; if not, write to the Free Software Foundation, Inc.,
20     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 */
22
23 #ifdef HAVE_MINGW
24 #ifdef WITH_WINDOWS2000
25 #define WINVER Windows2000
26 #else
27 #define WINVER WindowsXP
28 #endif
29 #define WIN32_LEAN_AND_MEAN
30 #endif
31
32 #include <stdio.h>
33 #include <stdlib.h>
34 #include <stdarg.h>
35 #include <stdbool.h>
36 #include <stdint.h>
37 #include <inttypes.h>
38 #include <string.h>
39 #include <ctype.h>
40 #include <signal.h>
41 #include <errno.h>
42 #include <fcntl.h>
43 #include <unistd.h>
44 #include <limits.h>
45
46 #ifdef HAVE_MINGW
47 #include <w32api.h>
48 #include <winsock2.h>
49 #include <windows.h>
50 #include <ws2tcpip.h>
51 #endif
52
53 #ifdef HAVE_TERMIOS_H
54 #include <termios.h>
55 #endif
56
57 /* Include system specific headers */
58
59 #ifdef HAVE_SYSLOG_H
60 #include <syslog.h>
61 #endif
62
63 #ifdef HAVE_SYS_TIME_H
64 #include <sys/time.h>
65 #endif
66
67 #ifdef HAVE_TIME_H
68 #include <time.h>
69 #endif
70
71 #ifdef HAVE_SYS_TYPES_H
72 #include <sys/types.h>
73 #endif
74
75 #ifdef HAVE_SYS_STAT_H
76 #include <sys/stat.h>
77 #endif
78
79 #ifdef HAVE_SYS_FILE_H
80 #include <sys/file.h>
81 #endif
82
83 #ifdef HAVE_SYS_WAIT_H
84 #include <sys/wait.h>
85 #endif
86
87 #ifdef HAVE_SYS_PARAM_H
88 #include <sys/param.h>
89 #endif
90
91 #ifdef HAVE_SYS_RESOURCE_H
92 #include <sys/resource.h>
93 #endif
94
95 #ifdef HAVE_SYS_UN_H
96 #include <sys/un.h>
97 #endif
98
99 #ifdef HAVE_DIRENT_H
100 #include <dirent.h>
101 #endif
102
103 /* SunOS really wants sys/socket.h BEFORE net/if.h,
104    and FreeBSD wants these lines below the rest. */
105
106 #ifdef HAVE_NETDB_H
107 #include <netdb.h>
108 #endif
109
110 #ifdef HAVE_SYS_SOCKET_H
111 #include <sys/socket.h>
112 #endif
113
114 #ifdef HAVE_ARPA_INET_H
115 #include <arpa/inet.h>
116 #endif
117
118 #ifdef HAVE_MINGW
119 #define SLASH "\\"
120 #else
121 #define SLASH "/"
122 #endif
123
124 #endif