X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Freadutmp.c;h=634d9ab1ffd6d364e6e0aab2babcd5de9468b88d;hb=3d1fd5fe3cb0a01d3def6ec7d042ffd3abd4a6a0;hp=ca4472c650a2994c06693678e3b1c39d608bf59c;hpb=359c0a71713e606f440d40f55a43c77349df2aaa;p=gnulib.git diff --git a/lib/readutmp.c b/lib/readutmp.c index ca4472c65..634d9ab1f 100644 --- a/lib/readutmp.c +++ b/lib/readutmp.c @@ -17,7 +17,9 @@ /* Written by jla; revised by djm */ -#include +#ifdef HAVE_CONFIG_H +# include +#endif #include "readutmp.h" @@ -68,6 +70,7 @@ static inline bool desirable_utmp_entry (STRUCT_UTMP const *u, int options) { return ! (options & READ_UTMP_CHECK_PIDS + && IS_USER_PROCESS (u) && (UT_PID (u) <= 0 || (kill (UT_PID (u), 0) < 0 && errno == ESRCH))); }