[polypaudio-commits] r795 - /trunk/src/daemon/caps.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Tue Apr 25 00:13:45 PDT 2006
Author: ossman
Date: Tue Apr 25 09:13:44 2006
New Revision: 795
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=795&root=polypaudio&view=rev
Log:
glibc <= 2.2 has a broken unistd.h, lacking setresuid().
Modified:
trunk/src/daemon/caps.c
Modified: trunk/src/daemon/caps.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/daemon/caps.c?rev=795&root=polypaudio&r1=794&r2=795&view=diff
==============================================================================
--- trunk/src/daemon/caps.c (original)
+++ trunk/src/daemon/caps.c Tue Apr 25 09:13:44 2006
@@ -35,6 +35,12 @@
#include <polypcore/log.h>
#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
More information about the pulseaudio-commits
mailing list