mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-27 06:27:57 +00:00
Formerly misc.c.~30~
This commit is contained in:
parent
8e1432e250
commit
29b051dc0c
1 changed files with 15 additions and 0 deletions
15
misc.c
15
misc.c
|
@ -491,6 +491,21 @@ dep_name (dep)
|
|||
|
||||
#ifdef GETLOADAVG_PRIVILEGED
|
||||
|
||||
#ifdef POSIX
|
||||
/* Hopefully if a system says it's POSIX.1 and has the setuid and setgid
|
||||
functions, they work as POSIX.1 says. Some systems (Alpha OSF/1 1.2,
|
||||
for example) which claim to be POSIX.1 also have the BSD setreuid and
|
||||
setregid functions, but they don't work as in BSD and only the POSIX.1
|
||||
way works. */
|
||||
|
||||
#if defined (HAVE_SETREUID) && defined (HAVE_SETUID)
|
||||
#undef HAVE_SETREUID
|
||||
#endif
|
||||
#if defined (HAVE_SETREGID) && defined (HAVE_SETGID)
|
||||
#undef HAVE_SETREGID
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_UNISTD_H
|
||||
extern int getuid (), getgid (), geteuid (), getegid ();
|
||||
extern int setuid (), setgid ();
|
||||
|
|
Loading…
Reference in a new issue