]> jfr.im git - solanum.git/blobdiff - include/stdinc.h
ircd/authproc.c: avoid crash on lack of any configured DNSBLs
[solanum.git] / include / stdinc.h
index ca5a1e9eee50ce7f83d669d36743ed1803a02e25..127ee1c8e2d72d8a3b46719d58f5b39af7672f59 100644 (file)
@@ -22,7 +22,6 @@
  */
 
 #include "rb_lib.h"
-#include "config.h"            /* Gotta pull in the autoconf stuff */
 #include "ircd_defs.h"  /* Needed for some reasons here -- dwr */
 
 /* AIX requires this to be the first thing in the file.  */
@@ -65,11 +64,23 @@ char *alloca ();
 # endif
 #endif
 
-
-#ifdef HAVE_STDDEF_H
 #include <stddef.h>
-#endif
 
+#ifdef HAVE_STDBOOL_H
+# include <stdbool.h>
+#else
+# ifndef HAVE__BOOL
+#  ifdef __cplusplus
+typedef bool _Bool;
+#  else
+#   define _Bool signed char
+#  endif
+# endif
+# define bool _Bool
+# define false 0
+# define true 1
+# define __bool_true_false_are_defined 1
+#endif
 
 
 #include <stdio.h>
@@ -77,46 +88,26 @@ char *alloca ();
 #include <stdio.h>
 #include <time.h>
 #include <fcntl.h>
-#include <netdb.h>
 #include <stdarg.h>
 #include <signal.h>
 #include <dirent.h>
 #include <ctype.h>
 
 #include <limits.h>
-
-#ifdef HAVE_UNISTD_H
 #include <unistd.h>
-#endif
-
 #include <sys/time.h>
 #include <sys/types.h>
 #include <sys/file.h>
-#ifdef HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
-#endif
-
 
-#include <sys/socket.h>
 #include <sys/stat.h>
-#include <sys/wait.h>
 
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
 #endif
-#include <netinet/in.h>
-#include <netinet/tcp.h>
-#include <arpa/inet.h>
 
-#ifdef HAVE_ERRNO_H
 #include <errno.h>
-#else
-extern int errno;
-#endif
-
-#ifdef HAVE_SYS_UIO_H
 #include <sys/uio.h>
-#endif
 
 #if defined(__INTEL_COMPILER) || defined(__GNUC__)
 # ifdef __unused