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:
@@ -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
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user