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.patch21
1 files changed, 21 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 000000000000..7c0cc312d907
--- /dev/null
+++ b/sys-auth/polkit/files/polkit-0.110-W_define.patch
@@ -0,0 +1,21 @@
+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>