summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-auth/polkit/files/polkit-0.110-W_define.patch')
-rw-r--r--sys-auth/polkit/files/polkit-0.110-W_define.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/sys-auth/polkit/files/polkit-0.110-W_define.patch b/sys-auth/polkit/files/polkit-0.110-W_define.patch
new file mode 100644
index 0000000..8e502b8
--- /dev/null
+++ b/sys-auth/polkit/files/polkit-0.110-W_define.patch
@@ -0,0 +1,23 @@
+http://bugs.freedesktop.org/show_bug.cgi?id=62220
+
+Failure to compile on SH4 arch because <sys/wait.h> is missing for #define's of:
+WIFEXITED, WEXITSTATUS, WIFSIGNALED, WTERMSIG
+
+Errors are like this:
+
+polkitbackendjsauthority.c:1509:3: warning: implicit declaration of function 'WIFEXITED' [-Wimplicit-function-declaration]
+polkitbackendjsauthority.c:1509:3: warning: nested extern declaration of 'WIFEXITED' [-Wnested-externs]
+
+polkitbackendjsauthority.c:(.text+0x3008): undefined reference to `WIFEXITED'
+polkitbackendjsauthority.c:(.text+0x3010): undefined reference to `WIFEXITED'
+
+--- src/polkitbackend/polkitbackendjsauthority.c
++++ src/polkitbackend/polkitbackendjsauthority.c
+@@ -20,6 +20,7 @@
+ */
+
+ #include "config.h"
++#include <sys/wait.h>
+ #include <errno.h>
+ #include <pwd.h>
+ #include <grp.h>