From 21295b3ae2d324312c343898db97f53b989d48b4 Mon Sep 17 00:00:00 2001 From: in2 Date: Wed, 22 Sep 2004 12:14:39 +0000 Subject: fix that adding file.c in r2207 causes compile failure in util/. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2206 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/file.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mbbsd') diff --git a/mbbsd/file.c b/mbbsd/file.c index aced35ff..8816776d 100644 --- a/mbbsd/file.c +++ b/mbbsd/file.c @@ -28,6 +28,8 @@ int file_append_line(char *file, char *string) return 0; } +#ifndef _BBS_UTIL_C_ +/* Rename() is in kaede.c but not linked to util/ */ int file_delete_line(char *file, char *string) { FILE *fp, *nfp = NULL; @@ -49,6 +51,7 @@ int file_delete_line(char *file, char *string) fclose(nfp); return 0; } +#endif int file_exist_record(char *file, char *string) { -- cgit v1.2.3