caps: Fix compilation on Windows
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Sun, 14 Jul 2013 10:26:24 +0000 (13:26 +0300)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Sun, 14 Jul 2013 10:26:24 +0000 (13:26 +0300)
Thanks to Pierre Ossman for the patch.

src/daemon/caps.c

index 36b76a90acfb22a410f409699001bbbfca8f2b91..2251cb3738367d0855f9df8c339ab3c0be02bff2 100644 (file)
@@ -72,10 +72,10 @@ void pa_drop_root(void) {
     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) {