summaryrefslogtreecommitdiffstats
path: root/tools/omusrmsg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-01 12:52:25 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-01 12:52:25 +0100
commiteb3afa800033a9479be0f9abf282befe2d478e3f (patch)
tree787981116a9876cbbd5e6cd2074275a714a3cc5d /tools/omusrmsg.c
parentc2c1d7120c3bcb8f12ad281798973f23010c63f9 (diff)
parentaf6c73439ecef2446c5fae0d774a8c093e2a3747 (diff)
downloadrsyslog-eb3afa800033a9479be0f9abf282befe2d478e3f.tar.gz
rsyslog-eb3afa800033a9479be0f9abf282befe2d478e3f.tar.bz2
rsyslog-eb3afa800033a9479be0f9abf282befe2d478e3f.zip
Merge branch 'v4-stable' into tmp
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..a89297d7 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_H
+# include <utmp.h>
+#else
+# include <utmpx.h>
+#endif
#include <unistd.h>
#include <sys/uio.h>
#include <sys/stat.h>