diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-17 12:23:59 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-17 12:23:59 +0800 |
commit | 2d6dc07feca4e5e3dc8333f514197573dfaefda0 (patch) | |
tree | e413be0ee267f02018dc5682218bac8b33ac1a60 /common | |
parent | fc9427e3fae4455ac9818ff9127c01f325b86497 (diff) | |
download | pttbbs-2d6dc07feca4e5e3dc8333f514197573dfaefda0.tar pttbbs-2d6dc07feca4e5e3dc8333f514197573dfaefda0.tar.gz pttbbs-2d6dc07feca4e5e3dc8333f514197573dfaefda0.tar.bz2 pttbbs-2d6dc07feca4e5e3dc8333f514197573dfaefda0.tar.lz pttbbs-2d6dc07feca4e5e3dc8333f514197573dfaefda0.tar.xz pttbbs-2d6dc07feca4e5e3dc8333f514197573dfaefda0.tar.zst pttbbs-2d6dc07feca4e5e3dc8333f514197573dfaefda0.zip |
Clean up header dependencies
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4377 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'common')
-rw-r--r-- | common/bbs/Makefile | 2 | ||||
-rw-r--r-- | common/bbs/file.c | 1 | ||||
-rw-r--r-- | common/bbs/names.c | 5 | ||||
-rw-r--r-- | common/bbs/path.c | 3 | ||||
-rw-r--r-- | common/sys/Makefile | 2 |
5 files changed, 10 insertions, 3 deletions
diff --git a/common/bbs/Makefile b/common/bbs/Makefile index b93cada1..4b992b6a 100644 --- a/common/bbs/Makefile +++ b/common/bbs/Makefile @@ -10,4 +10,6 @@ LIB:= cmbbs install: +all: $(SRCROOT)/include/var.h .depend + .include <bsd.lib.mk> diff --git a/common/bbs/file.c b/common/bbs/file.c index a423f92b..8222d1f6 100644 --- a/common/bbs/file.c +++ b/common/bbs/file.c @@ -1,3 +1,4 @@ +#include "cmsys.h" #include "cmbbs.h" int diff --git a/common/bbs/names.c b/common/bbs/names.c index d96b3b3e..68dcf101 100644 --- a/common/bbs/names.c +++ b/common/bbs/names.c @@ -1,12 +1,11 @@ /* $Id$ */ -// #include "bbs.h" #include "cmbbs.h" #include <assert.h> -// #include <stdio.h> -// #include <stdlib.h> #include <string.h> #include <ctype.h> +#include "pttstruct.h" + int is_validuserid(const char *id) diff --git a/common/bbs/path.c b/common/bbs/path.c index a48d3a46..560ac793 100644 --- a/common/bbs/path.c +++ b/common/bbs/path.c @@ -6,6 +6,9 @@ #include <stdlib.h> #include <string.h> #include <ctype.h> +#include "common.h" +#include "var.h" + /* ----------------------------------------------------- */ /* set file path for boards/user home */ diff --git a/common/sys/Makefile b/common/sys/Makefile index 574ab582..7450f7d6 100644 --- a/common/sys/Makefile +++ b/common/sys/Makefile @@ -8,6 +8,8 @@ SRCROOT= ../.. SRCS:= file.c lock.c log.c net.c sort.c string.c time.c crypt.c record.c osdep.c vector.c LIB:= cmsys +all: .depend + install: .include <bsd.lib.mk> |