aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ostree/musl-fixes.patch
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2017-03-10 22:35:18 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2017-03-14 14:50:36 +0000
commita09926e0513aa1e7f3205051370b46dd840184fa (patch)
treee1cc8c582484342c1676248e29ee9577e5f3979d /testing/ostree/musl-fixes.patch
parentd8c4e94d57497b2d65456d57b5dc7f744705137c (diff)
downloadaports-a09926e0513aa1e7f3205051370b46dd840184fa.tar.gz
aports-a09926e0513aa1e7f3205051370b46dd840184fa.tar.bz2
aports-a09926e0513aa1e7f3205051370b46dd840184fa.tar.xz
testing/ostree: new aport
Diffstat (limited to 'testing/ostree/musl-fixes.patch')
-rw-r--r--testing/ostree/musl-fixes.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/ostree/musl-fixes.patch b/testing/ostree/musl-fixes.patch
new file mode 100644
index 0000000000..4b1098e1ee
--- /dev/null
+++ b/testing/ostree/musl-fixes.patch
@@ -0,0 +1,39 @@
+--- a/src/libostree/ostree-repo.c
++++ b/src/libostree/ostree-repo.c
+@@ -43,6 +43,8 @@
+ #include <locale.h>
+ #include <glib/gstdio.h>
+
++#include <sys/file.h>
++
+ /**
+ * SECTION:ostree-repo
+ * @title: Content-addressed object store
+--- a/src/libostree/ostree-sysroot.c
++++ b/src/libostree/ostree-sysroot.c
+@@ -21,6 +21,7 @@
+ #include "config.h"
+
+ #include "otutil.h"
++#include <sys/file.h>
+ #include <sys/mount.h>
+ #include <sys/wait.h>
+
+--- a/config.h.in
++++ b/config.h.in
+@@ -148,3 +148,15 @@
+
+ /* Define to 1 if you need to in order for `stat' and other things to work. */
+ #undef _POSIX_SOURCE
++
++/* 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
++
++