From ddf25cbcb76bccbfe28d15f1e73c637becaa54e7 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 9 Jan 2008 23:22:04 +0000 Subject: Compile without warnings on NetBSD --- src/rc/rc-logger.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/rc/rc-logger.c') diff --git a/src/rc/rc-logger.c b/src/rc/rc-logger.c index f4c610a2..0c48e444 100644 --- a/src/rc/rc-logger.c +++ b/src/rc/rc-logger.c @@ -31,6 +31,7 @@ */ #include +#include #include #include #include @@ -44,6 +45,8 @@ #ifdef __linux__ # include +#elif defined(__NetBSD__) || defined(__OpenBSD__) +# include #else # include #endif @@ -99,7 +102,7 @@ static void write_log (int logfd, const char *buffer, size_t bytes) continue; } - if (! in_term || isalpha (*p)) + if (! in_term || isalpha ((int) *p)) in_escape = in_term = false; cont: p++; -- cgit v1.2.3