*
*/
-#include "ratbox_lib.h"
-#include "config.h" /* Gotta pull in the autoconf stuff */
+#include "rb_lib.h"
#include "ircd_defs.h" /* Needed for some reasons here -- dwr */
/* AIX requires this to be the first thing in the file. */
#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>
#include <assert.h>
#include <stdio.h>
#include <time.h>
#include <fcntl.h>
-#include <netdb.h>
#include <stdarg.h>
#include <signal.h>
#include <dirent.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>