From 698cbc6a4de316635ec4b0c18972b80eb125c9fc Mon Sep 17 00:00:00 2001 From: stefanf Date: Mon, 12 Sep 2005 16:06:15 +0000 Subject: Include at the top of the file. --- usr.sbin/i4b/isdnd/log.c | 7 ++++--- usr.sbin/i4b/isdnmonitor/main.c | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/i4b/isdnd/log.c b/usr.sbin/i4b/isdnd/log.c index 7876f13..831f0a9 100644 --- a/usr.sbin/i4b/isdnd/log.c +++ b/usr.sbin/i4b/isdnd/log.c @@ -33,6 +33,10 @@ * *---------------------------------------------------------------------------*/ +#ifdef __FreeBSD__ +#include +#endif + #include "isdnd.h" #define LOGBUFLEN 256 @@ -165,9 +169,6 @@ log(int what, const char *fmt, ...) * to write to the last column in the logfilewindow without causing an * automatic newline to occur resulting in a blank line in that window. */ -#ifdef __FreeBSD__ -#include -#endif #if defined(__FreeBSD_version) && __FreeBSD_version >= 400009 #warning "FreeBSD ncurses is buggy: write to last column = auto newline!" COLS-((strlen(dp))+(strlen(logtab[what].text))+3), buffer); diff --git a/usr.sbin/i4b/isdnmonitor/main.c b/usr.sbin/i4b/isdnmonitor/main.c index 1a0a1e89..3a2b122 100644 --- a/usr.sbin/i4b/isdnmonitor/main.c +++ b/usr.sbin/i4b/isdnmonitor/main.c @@ -72,6 +72,9 @@ int getopt(int nargc, char * const nargv[], const char *ostr); #ifdef ERROR #undef ERROR #endif +#ifdef __FreeBSD__ +#include +#endif #define MAIN #include "monprivate.h" @@ -518,9 +521,6 @@ print_logevent(time_t tstamp, int prio, char * what, char * msg) * to write to the last column in the logfilewindow without causing an * automatic newline to occur resulting in a blank line in that window. */ -#ifdef __FreeBSD__ -#include -#endif #if defined(__FreeBSD_version) && __FreeBSD_version >= 400009 #warning "FreeBSD ncurses is buggy: write to last column = auto newline!" wprintw(lower_w, "%s %s %-.*s\n", buf, what, -- cgit v1.1