summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-29 15:39:52 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-29 15:39:52 +0800
commit8ccbb616dd0471aca56c5fafc4612011876d6772 (patch)
tree14b65e8ebe481f3ff1bfad81a1d3f585e99c2698
parentec1c94c5dd76df278b9d99e583c325c6baec989d (diff)
downloadpttbbs-8ccbb616dd0471aca56c5fafc4612011876d6772.tar
pttbbs-8ccbb616dd0471aca56c5fafc4612011876d6772.tar.gz
pttbbs-8ccbb616dd0471aca56c5fafc4612011876d6772.tar.bz2
pttbbs-8ccbb616dd0471aca56c5fafc4612011876d6772.tar.lz
pttbbs-8ccbb616dd0471aca56c5fafc4612011876d6772.tar.xz
pttbbs-8ccbb616dd0471aca56c5fafc4612011876d6772.tar.zst
pttbbs-8ccbb616dd0471aca56c5fafc4612011876d6772.zip
Fix some compile warning and make error.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2099 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--include/proto.h1
-rw-r--r--innbbsd/Makefile4
-rw-r--r--util/Makefile5
-rw-r--r--util/buildAnnounce.c1
4 files changed, 5 insertions, 6 deletions
diff --git a/include/proto.h b/include/proto.h
index c439b708..ae4d94a0 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -575,6 +575,7 @@ int j_ticket_main(void);
/* term */
void init_tty(void);
int term_init(void);
+void telnet_parse_size(const unsigned char*);
void save_cursor(void);
void restore_cursor(void);
void do_move(int destcol, int destline);
diff --git a/innbbsd/Makefile b/innbbsd/Makefile
index b5b077ec..9bb71f52 100644
--- a/innbbsd/Makefile
+++ b/innbbsd/Makefile
@@ -40,7 +40,7 @@ CFLAGS+= -c -I. -I$(BBS_SRC)/include -I$(BBS_SRC)/mbbsd -D$(BBS_DEP) \
$(EXTRAFLAGS) -DDBZDEBUG -DBBSHOME='"$(BBSHOME)"' \
-D_PATH_BBSHOME=\"$(BBSHOME)\" \
-DVERSION=\"$(VERSION)\" -DADMINUSER=\"$(ADMINUSER)\"
-LDFLAGS+= -liconv
+#LDFLAGS+= -L/usr/local/lib
#
####################################################
@@ -96,7 +96,7 @@ solaris:
@$(MAKE) EXTRAFLAGS="-DMMAP -DSOLARIS -DSYSV" LDFLAGS="-lsocket -lnsl" YACC="bison -y" target
FreeBSD:
- @$(MAKE) CC=cc EXTRAFLAGS="-DBSD44 -DMMAP -DGETRUSAGE" LIBCRYPT=-lcrypt target
+ @$(MAKE) CC=cc EXTRAFLAGS="-DBSD44 -DMMAP -DGETRUSAGE" LDFLAGS="-lcrypt -liconv" target
bsd:
@$(MAKE) CC=cc EXTRAFLAGS="-DMMAP -DGETRUSAGE" target
diff --git a/util/Makefile b/util/Makefile
index 2fd805e3..4c5312b5 100644
--- a/util/Makefile
+++ b/util/Makefile
@@ -23,7 +23,7 @@ CPROG_WITH_UTIL= \
indexuser yearsold toplazyBM toplazyBBM \
reaper buildAnnounce inndBM shmctl \
outmail chkhbf checkmoney merge_dir \
- transman angel gamblegive
+ transman angel gamblegive checkdir
# 下面這些程式, 會直接被 compile
CPROG_WITHOUT_UTIL= \
@@ -38,8 +38,7 @@ PROGS= ${UTIL_OBJS} ${CPROG_WITH_UTIL} ${CPROG_WITHOUT_UTIL} \
openticket.sh stock.sh topsong.sh weather.sh \
stock.perl weather.perl toplazyBM.sh toplazyBBM.sh \
dailybackup.pl tarqueue.pl waterball.pl filtermail.pl \
- getbackup.pl udnnews.pl rebuildaloha.pl railway_wrapper.pl\
- checkdir
+ getbackup.pl udnnews.pl rebuildaloha.pl railway_wrapper.pl
all: ${CPROG_WITH_UTIL} ${CPROG_WITHOUT_UTIL} ${PROGS}
diff --git a/util/buildAnnounce.c b/util/buildAnnounce.c
index 0bfbefbd..be1b4ad4 100644
--- a/util/buildAnnounce.c
+++ b/util/buildAnnounce.c
@@ -4,7 +4,6 @@
#define GROUPROOT BBSHOME"/man/group"
extern boardheader_t *bcache;
-extern void resolve_boards();
extern int numboards;
int cmpboardclass(const void *a, const void *b)