mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
glibc <= 2.2 has a broken unistd.h, lacking setresuid().
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@795 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
820c118f9c
commit
f426b58e5c
1 changed files with 6 additions and 0 deletions
|
|
@ -36,6 +36,12 @@
|
|||
|
||||
#include "caps.h"
|
||||
|
||||
/* Glibc <= 2.2 has broken unistd.h */
|
||||
#if defined(linux) && (__GLIBC__ <= 2 && __GLIBC_MINOR__ <= 2)
|
||||
int setresgid(gid_t r, gid_t e, gid_t s);
|
||||
int setresuid(uid_t r, uid_t e, uid_t s);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_GETUID
|
||||
|
||||
/* Drop root rights when called SUID root */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue