Created SILC GIT repository.
[silc.git] / includes / silccompile.h
1 /*
2
3   silccompile.h
4
5   Author: Pekka Riikonen <priikone@silcnet.org>
6
7   Copyright (C) 2008 Pekka Riikonen
8
9   This program is free software; you can redistribute it and/or modify
10   it under the terms of the GNU General Public License as published by
11   the Free Software Foundation; version 2 of the License.
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 */
19
20 #ifndef SILCCOMPILE_H
21 #define SILCCOMPILE_H
22
23 #include <stdio.h>
24 #include <stdlib.h>
25 #include <string.h>
26 #include <stdarg.h>
27 #include <ctype.h>
28 #include <sys/types.h>
29 #include <sys/stat.h>
30 #include <time.h>
31 #include <dirent.h>
32
33 #ifdef HAVE_SIGNAL_H
34 #include <signal.h>
35 #endif
36
37 #ifdef HAVE_FCNTL_H
38 #include <fcntl.h>
39 #endif
40
41 #ifdef HAVE_ERRNO_H
42 #include <errno.h>
43 #endif
44
45 #ifdef HAVE_ASSERT_H
46 #include <assert.h>
47 #endif
48
49 #if !defined(SILC_WIN32)
50
51 #include <unistd.h>
52 #include <sys/time.h>
53 #include <pwd.h>
54 #include <sys/times.h>
55
56 #ifdef HAVE_GRP_H
57 #include <grp.h>
58 #endif
59
60 #ifdef SOCKS5
61 #include "socks.h"
62 #endif
63
64 #include <sys/socket.h>
65 #ifdef HAVE_NETINET_IN_H
66 #include <netinet/in.h>
67 #endif
68
69 #ifdef HAVE_XTI_H
70 #include <xti.h>
71 #else
72 #ifdef HAVE_NETINET_TCP_H
73 #include <netinet/tcp.h>
74 #endif
75 #endif
76
77 #ifdef HAVE_NETDB_H
78 #include <netdb.h>
79 #endif
80
81 #ifdef HAVE_ARPA_INET_H
82 #include <arpa/inet.h>
83 #endif
84
85 #ifdef HAVE_SYS_MMAN_H
86 #include <sys/mman.h>
87 #endif
88
89 #ifdef HAVE_DLFCN_H
90 #include <dlfcn.h>
91 #endif
92
93 #ifdef HAVE_LIMITS_H
94 #include <limits.h>
95 #endif
96
97 #ifdef SILC_HAVE_PTHREAD
98 #include <pthread.h>
99 #endif
100
101 #ifdef HAVE_STDDEF_H
102 #include <stddef.h>
103 #endif
104
105 #ifdef HAVE_TERMIOS_H
106 #include <termios.h>
107 #endif
108
109 #ifdef HAVE_UTIME_H
110 #include <utime.h>
111 #endif
112
113 #ifdef HAVE_ICONV_H
114 #include <iconv.h>
115 #endif
116
117 #ifdef HAVE_LOCALE_H
118 #include <locale.h>
119 #endif
120
121 #ifdef HAVE_LANGINFO_H
122 #include <langinfo.h>
123 #endif
124
125 #ifdef HAVE_SYS_RESOURCE_H
126 #include <sys/resource.h>
127 #endif
128
129 #endif /* !SILC_WIN32 */
130
131 #endif /* SILCCOMPILE_H */