2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-05 08:45:28 +00:00

Add check for getresuid() declaration, which may be missing on HP-UX.

When checking for getdomainname() prototype, look in netdb.h too.
This commit is contained in:
Todd C. Miller
2015-02-06 11:33:30 -07:00
parent c3c28773f5
commit 3eb9a854d8
4 changed files with 30 additions and 5 deletions

View File

@@ -343,8 +343,12 @@ extern int errno;
* Older HP-UX does not declare setresuid() or setresgid().
*/
#if defined(HAVE_DECL_SETRESUID) && !HAVE_DECL_SETRESUID
int setresuid(uid_t ruid, uid_t euid, uid_t suid);
int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
int setresuid(uid_t, uid_t, uid_t);
int setresgid(gid_t, gid_t, gid_t);
#endif
#if defined(HAVE_DECL_GETRESUID) && !HAVE_DECL_GETRESUID
int getresuid(uid_t *, uid_t *, uid_t *);
int getresgid(gid_t *, gid_t *, gid_t *);
#endif
/*