From f7e326bd50466f9197e75b2b71ccf0fb1996f4f8 Mon Sep 17 00:00:00 2001 From: Kevin E Martin Date: Wed, 5 Oct 2005 04:10:02 +0000 Subject: Add check for utmpx.ut_syslen structure member --- sessreg.c | 7 +++++-- 1 file 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 -# define USE_UTMPX +# if HAVE_UTMPX_UT_SYSLEN +# include +# define USE_UTMPX +# endif #endif #ifdef HAVE_CONFIG_H -- cgit v1.2.3