From a7bfcd9e4aff3dcec474ff42643c4bd70bc12334 Mon Sep 17 00:00:00 2001 From: in2 Date: Sat, 3 Jan 2004 08:43:00 +0000 Subject: fix compile error if not define NOKILLWATERBALL git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1451 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 467335c2..425406f1 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -359,9 +359,9 @@ write_request(int sig) { int i, msgcount; +#ifdef NOKILLWATERBALL if( reentrant_write_request ) /* kill again by shmctl */ return; -#ifdef NOKILLWATERBALL reentrant_write_request = 1; #endif if (WATERMODE(WATER_OFO)) { @@ -394,7 +394,9 @@ write_request(int sig) currutmp->chatid[0] = 2; currstat = HIT; +#ifdef NOKILLWATERBALL currutmp->wbtime = 0; +#endif if( (msgcount = currutmp->msgcount) > 0 ){ for( i = 0 ; i < msgcount ; ++i ){ bell(); -- cgit v1.2.3