1 |
/* |
2 |
* ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd). |
3 |
* stdinc.h: Pull in all of the necessary system headers |
4 |
* |
5 |
* Copyright (C) 2002 Aaron Sethman <androsyn@ratbox.org> |
6 |
* |
7 |
* This program is free software; you can redistribute it and/or modify |
8 |
* it under the terms of the GNU General Public License as published by |
9 |
* the Free Software Foundation; either version 2 of the License, or |
10 |
* (at your option) any later version. |
11 |
* |
12 |
* This program is distributed in the hope that it will be useful, |
13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
* GNU General Public License for more details. |
16 |
* |
17 |
* You should have received a copy of the GNU General Public License |
18 |
* along with this program; if not, write to the Free Software |
19 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
20 |
* USA |
21 |
* |
22 |
* $Id$ |
23 |
* |
24 |
*/ |
25 |
|
26 |
#ifndef STDINC_H /* prevent multiple #includes */ |
27 |
#define STDINC_H |
28 |
|
29 |
#include "config.h" |
30 |
|
31 |
#include "defaults.h" |
32 |
|
33 |
#include <stddef.h> |
34 |
#include <stdlib.h> |
35 |
#include <string.h> |
36 |
|
37 |
#ifdef HAVE_STRTOK_R |
38 |
# define strtoken(x, y, z) strtok_r(y, z, x) |
39 |
#endif |
40 |
|
41 |
#include <sys/types.h> |
42 |
|
43 |
#ifdef HAVE_INTTYPES_H |
44 |
#include <inttypes.h> |
45 |
#else |
46 |
#ifdef HAVE_STDINT_H |
47 |
#include <stdint.h> |
48 |
#endif |
49 |
#endif |
50 |
|
51 |
#ifdef HAVE_CRYPT_H |
52 |
#include <crypt.h> |
53 |
#endif |
54 |
|
55 |
#ifdef HAVE_LIBCRYPTO |
56 |
#include <openssl/ssl.h> |
57 |
#include <openssl/err.h> |
58 |
#endif |
59 |
|
60 |
#include <stdio.h> |
61 |
#include <assert.h> |
62 |
#include <time.h> |
63 |
#include <fcntl.h> |
64 |
|
65 |
#include <stdarg.h> |
66 |
#include <signal.h> |
67 |
#include <ctype.h> |
68 |
|
69 |
#include <dirent.h> |
70 |
#include <netdb.h> |
71 |
#include <sys/socket.h> |
72 |
#include <netinet/in.h> |
73 |
#include <arpa/inet.h> |
74 |
#include <sys/time.h> |
75 |
#include <sys/file.h> |
76 |
|
77 |
#include <limits.h> |
78 |
|
79 |
#ifdef HAVE_UNISTD_H |
80 |
#include <unistd.h> |
81 |
#endif |
82 |
|
83 |
#ifdef HAVE_SYS_RESOURCE_H |
84 |
#include <sys/resource.h> |
85 |
#endif |
86 |
|
87 |
#include <sys/stat.h> |
88 |
#ifdef HAVE_SYS_WAIT_H |
89 |
#include <sys/wait.h> |
90 |
#endif |
91 |
|
92 |
#ifdef HAVE_SYS_PARAM_H |
93 |
#include <sys/param.h> |
94 |
#endif |
95 |
|
96 |
#ifdef HAVE_ERRNO_H |
97 |
#include <errno.h> |
98 |
#else |
99 |
extern int errno; |
100 |
#endif |
101 |
|
102 |
#include "inet_misc.h" |
103 |
#endif |