summaryrefslogtreecommitdiffstats
path: root/tools/omusrmsg.c
diff options
context:
space:
mode:
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>