summaryrefslogtreecommitdiff
path: root/sessreg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sessreg.h')
-rw-r--r--sessreg.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sessreg.h b/sessreg.h
index 947f49f..0f6101a 100644
--- a/sessreg.h
+++ b/sessreg.h
@@ -54,9 +54,11 @@
#include <time.h>
/* Prefer POSIX standard utmpx interfaces if present, otherwise use utmp */
-#if defined(HAVE_UTMP_H) && !defined(HAVE_UTMPX_H)
+#ifdef HAVE_UTMP_H
# include <utmp.h>
-# define USE_UTMP
+# ifndef HAVE_UTMPX_H
+# define USE_UTMP
+# endif
#endif
#ifdef HAVE_UTMPX_H