]>
jfr.im git - solanum.git/blob - include/stdinc.h
2 * ircd-ratbox: A slightly useful ircd.
3 * stdinc.h: Pull in all of the necessary system headers
5 * Copyright (C) 2002 Aaron Sethman <androsyn@ratbox.org>
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.
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.
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
25 #include "config.h" /* Gotta pull in the autoconf stuff */
26 #include "ircd_defs.h" /* Needed for some reasons here -- dwr */
28 /* AIX requires this to be the first thing in the file. */
31 #define alloca __builtin_alloca
35 # define alloca _alloca
43 # ifndef alloca /* predefined by HP cc +Olibcalls */
55 #ifdef STRING_WITH_STRINGS
62 # ifdef HAVE_STRINGS_H
81 # define _Bool signed char
87 # define __bool_true_false_are_defined 1
108 #include <sys/time.h>
109 #include <sys/types.h>
110 #include <sys/file.h>
111 #ifdef HAVE_SYS_RESOURCE_H
112 #include <sys/resource.h>
116 #include <sys/socket.h>
117 #include <sys/stat.h>
118 #include <sys/wait.h>
120 #ifdef HAVE_SYS_PARAM_H
121 #include <sys/param.h>
123 #include <netinet/in.h>
124 #include <netinet/tcp.h>
125 #include <arpa/inet.h>
133 #ifdef HAVE_SYS_UIO_H
137 #if defined(__INTEL_COMPILER) || defined(__GNUC__)
148 # define __unused __attribute__((__unused__))
149 # define __printf(x) __attribute__((__format__ (__printf__, x, x + 1)))
150 # define __noreturn __attribute__((__noreturn__))
160 #define LOCAL_COPY(s) strdupa(s)
162 #if defined(__INTEL_COMPILER) || defined(__GNUC__)
163 # define LOCAL_COPY(s) __extension__({ char *_s = alloca(strlen(s) + 1); strcpy(_s, s); _s; })
165 # define LOCAL_COPY(s) strcpy(alloca(strlen(s) + 1), s) /* XXX Is that allowed? */
166 #endif /* defined(__INTEL_COMPILER) || defined(__GNUC__) */