ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-7.2/include/stdinc.h
Revision: 912
Committed: Wed Nov 7 22:47:44 2007 UTC (17 years, 9 months ago) by michael
Content type: text/x-chdr
File size: 2789 byte(s)
Log Message:
- Implemented libtool-ltdl. Only shared modules are supported currently
- Several build fixes and cleanups. ircd now builds and runs without any problems
- Added back all files to SVN that are needed to built the daemon
  I really don't want to force other people that want to test the snapshots
  or svn versions to install yyacc, lex, automake, autoconf and libtool...
  No problem having required files in svn
- Removed some automake maintainer stuff which is kinda useless for us

File Contents

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

Properties

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