summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-01 15:34:24 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-01 15:34:24 +0000
commit640374d0dfc3428416b596d67c06b3c817f44bd8 (patch)
tree0125d04838ec2165b6a564b01c53e815f9d81d20 /perl.h
parent592f596992fbcfa7e7c135f9212d2ec2def553a6 (diff)
downloadperl-640374d0dfc3428416b596d67c06b3c817f44bd8.tar.gz
Configure tweaks; record the Berkeley DB version,
probe for realpath(), for setresuid() and setresgid() prototypes; use realpath() (try to be paranoid enough), use the setres[ug]id prototypes because glibc has the functions but not their prototypes; add -Wall -ansi to gcc ccflags; regen toc. p4raw-id: //depot/perl@10372
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 1aee654dde..88d32a4852 100644
--- a/perl.h
+++ b/perl.h
@@ -2487,6 +2487,13 @@ I32 unlnk (char*);
#define UNLINK PerlLIO_unlink
#endif
+#ifndef HAS_SETRESUID_PROTO /* some versions of glibc */
+int setresuid(uid_t ruid, uid_t euid, uid_t suid);
+#endif
+#ifndef HAS_SETRESUID_PROTO /* some versions of glibc */
+int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
+#endif
+
#ifndef HAS_SETREUID
# ifdef HAS_SETRESUID
# define setreuid(r,e) setresuid(r,e,(Uid_t)-1)