summaryrefslogtreecommitdiff
path: root/sessreg.c
diff options
context:
space:
mode:
authorKevin E Martin <kem@kem.org>2005-10-05 04:10:02 +0000
committerKevin E Martin <kem@kem.org>2005-10-05 04:10:02 +0000
commitf7e326bd50466f9197e75b2b71ccf0fb1996f4f8 (patch)
tree9c43748625df46c3ea3c6c3b790cd976fd3a93bb /sessreg.c
parente33c62dfa7641e8e37a2ef64d98aa5171f2ef705 (diff)
Add check for utmpx.ut_syslen structure memberXORG-6_8_99_903XORG-6_8_99_902XORG-6_8_99_901
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