summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-09-12 16:06:15 +0000
committerstefanf <stefanf@FreeBSD.org>2005-09-12 16:06:15 +0000
commit698cbc6a4de316635ec4b0c18972b80eb125c9fc (patch)
tree7a191890839f636ae483f6e680f817a936b98276 /usr.sbin
parentfa7406b7f9b16d647bc949c800e4d706bf10d748 (diff)
downloadFreeBSD-src-698cbc6a4de316635ec4b0c18972b80eb125c9fc.zip
FreeBSD-src-698cbc6a4de316635ec4b0c18972b80eb125c9fc.tar.gz
Include <osreldate.h> at the top of the file.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/i4b/isdnd/log.c7
-rw-r--r--usr.sbin/i4b/isdnmonitor/main.c6
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,
OpenPOWER on IntegriCloud