r18122: Fix warnings related to errno declaration.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 6 Sep 2006 01:41:41 +0000 (01:41 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:17:35 +0000 (14:17 -0500)
source/lib/replace/libreplace.m4

index 7136a18029f2b92840ce21e35e5e6aeac1eedef7..ffea11f7344adea6bce9dcc77efa85af028501ab 100644 (file)
@@ -70,7 +70,9 @@ AC_CHECK_FUNCS(seteuid setresuid setegid setresgid chroot bzero strerror)
 AC_CHECK_FUNCS(vsyslog setlinebuf mktime ftruncate chsize rename)
 AC_CHECK_FUNCS(waitpid strlcpy strlcat innetgr initgroups memmove strdup)
 AC_CHECK_FUNCS(pread pwrite strndup strcasestr strtok_r mkdtemp)
-AC_CHECK_DECLS([setresuid, setresgid, errno])
+AC_HAVE_DECL(setresuid, [#include <unistd.h>])
+AC_HAVE_DECL(setresgid, [#include <unistd.h>])
+AC_HAVE_DECL(errno, [#include <errno.h>])
 
 AC_CACHE_CHECK([for secure mkstemp],samba_cv_HAVE_SECURE_MKSTEMP,[
 AC_TRY_RUN([#include <stdlib.h>