From: Ole Christensen Date: Mon, 9 Jul 2012 02:35:45 +0000 (+1200) Subject: Bug 3584: Detection of setresuid() is broken X-Git-Tag: sourceformat-review-1~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad17d4bdb0ef2e9b693799d1cad04043222ddd0a;p=thirdparty%2Fsquid.git Bug 3584: Detection of setresuid() is broken --- diff --git a/acinclude/os-deps.m4 b/acinclude/os-deps.m4 index 3c8ace52d9..af09ac92be 100644 --- a/acinclude/os-deps.m4 +++ b/acinclude/os-deps.m4 @@ -829,14 +829,21 @@ void squid_getprotobynumber(void) { SQUID_STATE_ROLLBACK(winsock) ]) - dnl check that setresuid is properly implemented. dnl sets squid_cv_resuid_works to "yes" or "no" AC_DEFUN([SQUID_CHECK_SETRESUID_WORKS],[ AC_CACHE_CHECK(if setresuid is actually implemented, squid_cv_resuid_works, AC_RUN_IFELSE([ AC_LANG_SOURCE([[ +#if HAVE_STDLIB_H #include +#endif +#if HAVE_STDIO_H +#include +#endif +#if HAVE_UNISTD_H +#include +#endif int main(int argc, char **argv) { if(setresuid(-1,-1,-1)) { perror("setresuid:");