1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 20:55:19 +03:00
aports/community/xdg-dbus-proxy/musl-fix.patch
Natanael Copa 91ba9be2ce community/xdg-dbus-proxy: new aport
Filtering proxy for D-Bus connections
https://github.com/flatpak/xdg-dbus-proxy/

Needed by webkit2gtk

j#	../../main/s390x-use-elf-gdb_fpregset_t.patch
2019-09-10 05:38:11 +00:00

22 lines
757 B
Diff

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;