summaryrefslogtreecommitdiffstats
path: root/usr.sbin/i4b/isdnd/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/i4b/isdnd/log.c')
-rw-r--r--usr.sbin/i4b/isdnd/log.c7
1 files changed, 4 insertions, 3 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);
OpenPOWER on IntegriCloud