X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fslocal.c;h=cc3c8727c15dca04bed8015623939d072b45e565;hb=783f1bcf7d7429121a97eb0117bf444c1a59a28e;hp=5026d82ccd6cb8bdddb0f68aee8baa35a131efab;hpb=7ba29497ff3f164e2a507eda35e81f1cb0658c74;p=mmh diff --git a/uip/slocal.c b/uip/slocal.c index 5026d82..cc3c872 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include #include @@ -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); } @@ -1123,7 +1127,7 @@ usr_pipe (int fd, char *cmd, char *pgm, char **vec, int suppress) default: /* parent process */ - if (! m_setjmp (myctx)) { + if (! setjmp (myctx)) { SIGNAL (SIGALRM, alrmser); bytes = fstat (fd, &st) != -1 ? (int) st.st_size : 100;