summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-10 21:44:27 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-10 21:44:27 +0800
commit8f04bf22056fdec5d8b5083e7a95773fa7ce2f96 (patch)
tree29fce87ce49596513cd423fa2429f2725b7f4930
parent3c87bf11fca0f5e96a34dd17ac4c07b8a401a172 (diff)
downloadpttbbs-8f04bf22056fdec5d8b5083e7a95773fa7ce2f96.tar
pttbbs-8f04bf22056fdec5d8b5083e7a95773fa7ce2f96.tar.gz
pttbbs-8f04bf22056fdec5d8b5083e7a95773fa7ce2f96.tar.bz2
pttbbs-8f04bf22056fdec5d8b5083e7a95773fa7ce2f96.tar.lz
pttbbs-8f04bf22056fdec5d8b5083e7a95773fa7ce2f96.tar.xz
pttbbs-8f04bf22056fdec5d8b5083e7a95773fa7ce2f96.tar.zst
pttbbs-8f04bf22056fdec5d8b5083e7a95773fa7ce2f96.zip
* remove unused or rear used header file include in bbs.h
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4541 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-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 活動以解決糾紛 */