/[svn]/ircd-hybrid-7.2/include/stdinc.h
ViewVC logotype

Contents of /ircd-hybrid-7.2/include/stdinc.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1001 - (show annotations)
Sat Aug 29 22:44:44 2009 UTC (11 years, 6 months ago) by michael
File MIME type: text/x-csrc
File size: 2382 byte(s)
- remove half done and broken win32 support

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 <stdlib.h>
34 #include <string.h>
35
36 #ifdef HAVE_STRTOK_R
37 # define strtoken(x, y, z) strtok_r(y, z, x)
38 #endif
39
40 #include <sys/types.h>
41
42 #ifdef HAVE_INTTYPES_H
43 #include <inttypes.h>
44 #else
45 #ifdef HAVE_STDINT_H
46 #include <stdint.h>
47 #endif
48 #endif
49
50 #ifdef HAVE_STDDEF_H
51 # include <stddef.h>
52 #else /* This is basically what stddef.h provides on most systems */
53 # ifndef NULL
54 # define NULL ((void*)0)
55 # endif
56 # ifndef offsetof
57 # define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
58 # endif
59 #endif
60
61 #ifdef HAVE_CRYPT_H
62 #include <crypt.h>
63 #endif
64
65 #ifdef HAVE_LIBCRYPTO
66 #include <openssl/ssl.h>
67 #include <openssl/err.h>
68 #endif
69
70 #include <stdio.h>
71 #include <assert.h>
72 #include <time.h>
73 #include <fcntl.h>
74
75 #ifdef HAVE_LIBGEN_H
76 #include <libgen.h>
77 #endif
78
79 #include <stdarg.h>
80 #include <signal.h>
81 #include <ctype.h>
82
83 #include <dirent.h>
84 #include <netdb.h>
85 #include <sys/socket.h>
86 #include <netinet/in.h>
87 #include <arpa/inet.h>
88 #include <sys/time.h>
89 #include <sys/file.h>
90
91 #include <limits.h>
92
93 #ifdef HAVE_UNISTD_H
94 #include <unistd.h>
95 #endif
96
97 #ifdef HAVE_SYS_RESOURCE_H
98 #include <sys/resource.h>
99 #endif
100
101 #include <sys/stat.h>
102 #ifdef HAVE_SYS_WAIT_H
103 #include <sys/wait.h>
104 #endif
105
106 #ifdef HAVE_SYS_PARAM_H
107 #include <sys/param.h>
108 #endif
109
110 #ifdef HAVE_ERRNO_H
111 #include <errno.h>
112 #else
113 extern int errno;
114 #endif
115
116 #include "inet_misc.h"
117 #endif

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28