forked from AuroraMiddleware/gtk
Remove declarations for getresuid()/getresgid()
Back in 2001, their prototypes were missing from system headers, but since glibc 2.3.2 they are defined in unistd.h if _GNU_SOURCE is defined.
This commit is contained in:
parent
db6f9a8e45
commit
fc9826fb41
@ -361,11 +361,6 @@ check_setugid (void)
|
|||||||
gid_t rgid, egid, sgid; /* Real, effective and saved group ID's */
|
gid_t rgid, egid, sgid; /* Real, effective and saved group ID's */
|
||||||
|
|
||||||
#ifdef HAVE_GETRESUID
|
#ifdef HAVE_GETRESUID
|
||||||
/* These aren't in the header files, so we prototype them here.
|
|
||||||
*/
|
|
||||||
int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
|
|
||||||
int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
|
|
||||||
|
|
||||||
if (getresuid (&ruid, &euid, &suid) != 0 ||
|
if (getresuid (&ruid, &euid, &suid) != 0 ||
|
||||||
getresgid (&rgid, &egid, &sgid) != 0)
|
getresgid (&rgid, &egid, &sgid) != 0)
|
||||||
#endif /* HAVE_GETRESUID */
|
#endif /* HAVE_GETRESUID */
|
||||||
|
Loading…
Reference in New Issue
Block a user