projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved the set +e up to capture one more test in test-pick. That
[mmh]
/
uip
/
slocal.c
diff --git
a/uip/slocal.c
b/uip/slocal.c
index
71e09ff
..
cc3c872
100644
(file)
--- a/
uip/slocal.c
+++ b/
uip/slocal.c
@@
-51,7
+51,9
@@
#include NDBM_HEADER
#endif
#include NDBM_HEADER
#endif
+#ifdef HAVE_GETUTXENT
#include <utmpx.h>
#include <utmpx.h>
+#endif /* HAVE_GETUTXENT */
static struct swit switches[] = {
#define ADDRSW 0
static struct swit switches[] = {
#define ADDRSW 0
@@
-930,6
+932,7
@@
lookup (struct pair *pairs, char *key)
static int
logged_in (void)
{
static int
logged_in (void)
{
+#if HAVE_GETUTXENT
struct utmpx *utp;
if (utmped)
struct utmpx *utp;
if (utmped)
@@
-948,6
+951,7
@@
logged_in (void)
}
endutxent();
}
endutxent();
+#endif /* HAVE_GETUTXENT */
return (utmped = NOTOK);
}
return (utmped = NOTOK);
}