X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/49e0326aeef4cdc75898bf3049bfa3c123688e0f..025bb212470ef2945c9b7f57cb7fbfceb3e04e2c:/uip/slocal.c diff --git a/uip/slocal.c b/uip/slocal.c index 71e09ff1..cc3c8727 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -51,7 +51,9 @@ #include NDBM_HEADER #endif +#ifdef HAVE_GETUTXENT #include +#endif /* HAVE_GETUTXENT */ static struct swit switches[] = { #define ADDRSW 0 @@ -930,6 +932,7 @@ lookup (struct pair *pairs, char *key) static int logged_in (void) { +#if HAVE_GETUTXENT struct utmpx *utp; if (utmped) @@ -948,6 +951,7 @@ logged_in (void) } endutxent(); +#endif /* HAVE_GETUTXENT */ return (utmped = NOTOK); }