summaryrefslogtreecommitdiffstats
path: root/tools/omusrmsg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-02-28 18:33:08 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-02-28 18:33:08 +0100
commitf12a1995e42d098217fef22cba6e7158ed76e635 (patch)
tree2be50d6ca7fcef1d6dd767962fbd8ffdaf3ca73d /tools/omusrmsg.c
parent8750f48390262e0b75b37a43b2d66e5e1c0ca2c3 (diff)
downloadrsyslog-f12a1995e42d098217fef22cba6e7158ed76e635.tar.gz
rsyslog-f12a1995e42d098217fef22cba6e7158ed76e635.tar.xz
rsyslog-f12a1995e42d098217fef22cba6e7158ed76e635.zip
bugfix: fixed problem that caused compilation on FreeBSD 9.0 to fail.
bugtracker: http://bugzilla.adiscon.com/show_bug.cgi?id=181 Thanks to Christiano for reporting.
Diffstat (limited to 'tools/omusrmsg.c')
-rw-r--r--tools/omusrmsg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/omusrmsg.c b/tools/omusrmsg.c
index 499a11dd..fe3fb4d4 100644
--- a/tools/omusrmsg.c
+++ b/tools/omusrmsg.c
@@ -50,7 +50,11 @@
#include <assert.h>
#include <signal.h>
#include <sys/param.h>
-#include <utmp.h>
+#ifdef HAVE_UTMP_X_H
+# include <utmpx.h>
+#else
+# include <utmp.h>
+#endif
#include <unistd.h>
#include <sys/uio.h>
#include <sys/stat.h>