summaryrefslogtreecommitdiff
path: root/sessreg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sessreg.h')
-rw-r--r--sessreg.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sessreg.h b/sessreg.h
index 71e93f1..947f49f 100644
--- a/sessreg.h
+++ b/sessreg.h
@@ -53,7 +53,8 @@
#include <sys/types.h>
#include <time.h>
-#ifdef HAVE_UTMP_H
+/* Prefer POSIX standard utmpx interfaces if present, otherwise use utmp */
+#if defined(HAVE_UTMP_H) && !defined(HAVE_UTMPX_H)
# include <utmp.h>
# define USE_UTMP
#endif