summaryrefslogtreecommitdiff
path: root/sessreg.c
diff options
context:
space:
mode:
Diffstat (limited to 'sessreg.c')
-rw-r--r--sessreg.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sessreg.c b/sessreg.c
index af23300..b317601 100644
--- a/sessreg.c
+++ b/sessreg.c
@@ -92,12 +92,15 @@
#ifndef HAVE_CONFIG_H /* Imake fallback - hardcode platforms with utmpx */
# if (defined(sun) && defined (__SVR4))
# define HAVE_UTMPX_H
+# define HAVE_UTMPX_UT_SYSLEN 1
# endif
#endif
#ifdef HAVE_UTMPX_H
-# include <utmpx.h>
-# define USE_UTMPX
+# if HAVE_UTMPX_UT_SYSLEN
+# include <utmpx.h>
+# define USE_UTMPX
+# endif
#endif
#ifdef HAVE_CONFIG_H