summaryrefslogtreecommitdiff
path: root/src/rc/rc-logger.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-09 23:22:04 +0000
committerRoy Marples <roy@marples.name>2008-01-09 23:22:04 +0000
commitddf25cbcb76bccbfe28d15f1e73c637becaa54e7 (patch)
tree6ade72713da143021e78a361c534d143b267707a /src/rc/rc-logger.c
parent06634f6309f07613cd6a086a6b383daad65192c0 (diff)
downloadopenrc-ddf25cbcb76bccbfe28d15f1e73c637becaa54e7.tar.gz
openrc-ddf25cbcb76bccbfe28d15f1e73c637becaa54e7.tar.bz2
openrc-ddf25cbcb76bccbfe28d15f1e73c637becaa54e7.tar.xz
Compile without warnings on NetBSD
Diffstat (limited to 'src/rc/rc-logger.c')
-rw-r--r--src/rc/rc-logger.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rc/rc-logger.c b/src/rc/rc-logger.c
index f4c610a..0c48e44 100644
--- a/src/rc/rc-logger.c
+++ b/src/rc/rc-logger.c
@@ -31,6 +31,7 @@
*/
#include <sys/types.h>
+#include <sys/ioctl.h>
#include <sys/wait.h>
#include <ctype.h>
#include <fcntl.h>
@@ -44,6 +45,8 @@
#ifdef __linux__
# include <pty.h>
+#elif defined(__NetBSD__) || defined(__OpenBSD__)
+# include <util.h>
#else
# include <libutil.h>
#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++;