From: Ole Christensen Date: Mon, 16 Jul 2012 06:21:08 +0000 (-0600) Subject: Bug 3584: Detection of setresuid() is broken X-Git-Tag: SQUID_3_2_0_19~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d568be64dd56d2c4c0b368b8b9ed3b3316d8fbcf;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:");