summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/bbs.h11
-rw-r--r--mbbsd/mbbsd.c1
-rw-r--r--mbbsd/term.c1
-rw-r--r--util/xchatd.c2
4 files changed, 4 insertions, 11 deletions
diff --git a/include/bbs.h b/include/bbs.h
index b9b3307e..888f6d74 100644
--- a/include/bbs.h
+++ b/include/bbs.h
@@ -14,33 +14,22 @@ extern "C" {
#include <assert.h>
#include <stdlib.h>
#include <stdarg.h>
-#include <setjmp.h>
#include <signal.h>
#include <unistd.h>
#include <fcntl.h>
-#include <syslog.h>
#include <errno.h>
-#include <netdb.h>
#include <time.h>
#include <ctype.h>
-#include <termios.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/wait.h>
#include <sys/socket.h>
-#include <sys/time.h>
#include <sys/resource.h>
-#include <netinet/in.h>
-#include <netinet/tcp.h>
#include <arpa/inet.h>
-#include <arpa/telnet.h>
#include <sys/types.h>
#include <dirent.h>
#include <sys/mman.h>
-#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/sem.h>
-#include <sys/msg.h>
/* our header */
#include "config.h"
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index f152b193..f460b7e1 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -2,6 +2,7 @@
#include "bbs.h"
#include "banip.h"
#include "logind.h"
+#include <sys/wait.h>
#ifdef __linux__
# ifdef CRITICAL_MEMORY
diff --git a/mbbsd/term.c b/mbbsd/term.c
index 33cb4947..56cc7685 100644
--- a/mbbsd/term.c
+++ b/mbbsd/term.c
@@ -1,5 +1,6 @@
/* $Id$ */
#include "bbs.h"
+#include <termios.h>
/* ----------------------------------------------------- */
/* basic tty control */
diff --git a/util/xchatd.c b/util/xchatd.c
index 37b4dde0..43ea1914 100644
--- a/util/xchatd.c
+++ b/util/xchatd.c
@@ -1,6 +1,8 @@
/* $Id$ */
#include "bbs.h"
#include "xchatd.h"
+#include <sys/wait.h>
+#include <netdb.h>
#define SERVER_USAGE
#undef MONITOR /* 監督 chatroom 活動以解決糾紛 */