[pulseaudio-tickets] [Bug 66846] New: caps.c fails to compile on Windows

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jul 12 00:56:50 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=66846

          Priority: medium
            Bug ID: 66846
                CC: lennart at poettering.net
          Assignee: pulseaudio-bugs at lists.freedesktop.org
           Summary: caps.c fails to compile on Windows
        QA Contact: pulseaudio-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: pierre-bugzilla at ossman.eu
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: daemon
           Product: PulseAudio

daemon/caps.c: In function 'pa_drop_root':
daemon/caps.c:77:9: error: 'uid' undeclared (first use in this function)
daemon/caps.c:77:9: note: each undeclared identifier is reported only once for
each function it appears in
make[7]: *** [pulseaudio-caps.o] Error 1

You can't be looking at uid if the system doesn't have getuid(). :)

Fix:

Index: src/daemon/caps.c
===================================================================
--- src/daemon/caps.c    (revision 27650)
+++ src/daemon/caps.c    (working copy)
@@ -72,10 +72,10 @@
     pa_assert_se(geteuid() == uid);
     pa_assert_se(getgid() == gid);
     pa_assert_se(getegid() == gid);
-#endif

     if (uid != 0)
         pa_drop_caps();
+#endif
 }

 void pa_drop_caps(void) {

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20130712/19a49fa6/attachment.html>


More information about the pulseaudio-bugs mailing list