aboutsummaryrefslogtreecommitdiffstats
path: root/community/xdg-dbus-proxy/musl-fix.patch
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-12-23 14:32:35 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-12-24 12:29:12 +0100
commitcea2f818f130adc136b5e6365302ad6061d46862 (patch)
tree24ec7ac363241a8a8586ce189a1fc6a2b1b85536 /community/xdg-dbus-proxy/musl-fix.patch
parentfaa178737886abe4ce4975ee84955e9bc44e7e5e (diff)
downloadaports-cea2f818f130adc136b5e6365302ad6061d46862.tar.gz
aports-cea2f818f130adc136b5e6365302ad6061d46862.tar.bz2
aports-cea2f818f130adc136b5e6365302ad6061d46862.tar.xz
community/xdg-dbus-proxy: new aport, required for webkit2gtk
https://github.com/flatpak/xdg-dbus-proxy/ Filtering proxy for D-Bus connections
Diffstat (limited to 'community/xdg-dbus-proxy/musl-fix.patch')
-rw-r--r--community/xdg-dbus-proxy/musl-fix.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/community/xdg-dbus-proxy/musl-fix.patch b/community/xdg-dbus-proxy/musl-fix.patch
new file mode 100644
index 0000000000..3e18d1b6d7
--- /dev/null
+++ b/community/xdg-dbus-proxy/musl-fix.patch
@@ -0,0 +1,22 @@
+https://github.com/flatpak/flatpak/issues/618
+diff --git a/dbus-proxy.c b/dbus-proxy.c
+index 163df21..99090e1 100644
+--- a/dbus-proxy.c
++++ b/dbus-proxy.c
+@@ -31,6 +31,16 @@
+
+ #include "flatpak-proxy.h"
+
++/* taken from glibc unistd.h and fixes musl */
++#ifndef TEMP_FAILURE_RETRY
++#define TEMP_FAILURE_RETRY(expression) \
++ (__extension__ \
++ ({ long int __result; \
++ do __result = (long int) (expression); \
++ while (__result == -1L && errno == EINTR); \
++ __result; }))
++#endif
++
+ static const char *argv0;
+ static GList *proxies;
+ static int sync_fd = -1;