]> code.delx.au - pulseaudio/blobdiff - polyp/caps.c
Merge Pierre's changes
[pulseaudio] / polyp / caps.c
index 739e707120ed5330d51d379e2db82e655ab061b2..4ecb5848df174738280345e633a27328de892963 100644 (file)
@@ -35,6 +35,8 @@
 #include "log.h"
 #include "caps.h"
 
+#ifdef HAVE_GETUID
+
 /* Drop root rights when called SUID root */
 void pa_drop_root(void) {
     uid_t uid = getuid();
@@ -54,6 +56,13 @@ void pa_drop_root(void) {
 #endif
 }
 
+#else
+
+void pa_drop_root(void) {
+}
+
+#endif
+
 #ifdef HAVE_SYS_CAPABILITY_H
 
 /* Limit capabilities set to CAPSYS_NICE */