summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-09-06 01:41:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:35 -0500
commit7619eff87d872fa29eecad2afc1d858ec2cd38bb (patch)
tree1ea40e3f14349175496c0a2ffe42736b43c87ba7 /source4/lib
parenta59706f721c70e9a4f78eb2296bb746b912ce9d0 (diff)
downloadsamba-7619eff87d872fa29eecad2afc1d858ec2cd38bb.tar.gz
samba-7619eff87d872fa29eecad2afc1d858ec2cd38bb.tar.bz2
samba-7619eff87d872fa29eecad2afc1d858ec2cd38bb.zip
r18122: Fix warnings related to errno declaration.
(This used to be commit c30abc8e491d482c1771e7ac06cb511bae578467)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/replace/libreplace.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/replace/libreplace.m4 b/source4/lib/replace/libreplace.m4
index 7136a18029..ffea11f734 100644
--- a/source4/lib/replace/libreplace.m4
+++ b/source4/lib/replace/libreplace.m4
@@ -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>