diff options
Diffstat (limited to 'usr.sbin/i4b')
-rw-r--r-- | usr.sbin/i4b/isdnd/log.c | 7 | ||||
-rw-r--r-- | usr.sbin/i4b/isdnmonitor/main.c | 6 |
2 files changed, 7 insertions, 6 deletions
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 <osreldate.h> +#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 <osreldate.h> -#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 <osreldate.h> +#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 <osreldate.h> -#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, |