ca92b35948
Moved from aports/main to aports/luna, so we can disable the entire folder from building in the binary repository: * qt5-qtwebengine * postmarketos-ui-luna
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From 71b3c3d4160c5e98cc0a0797710bdd121a79e8b8 Mon Sep 17 00:00:00 2001
|
|
From: Khem Raj <raj.khem@gmail.com>
|
|
Date: Fri, 7 Jul 2017 14:01:12 -0700
|
|
Subject: [PATCH] chromium: musl: sandbox: Define TEMP_FAILURE_RETRY if not
|
|
defined
|
|
|
|
Musl does not define this Macro
|
|
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
---
|
|
chromium/sandbox/linux/suid/sandbox.c | 9 +++++++++
|
|
1 file changed, 9 insertions(+)
|
|
|
|
diff --git a/src/3rdparty/chromium/sandbox/linux/suid/sandbox.c b/src/3rdparty/chromium/sandbox/linux/suid/sandbox.c
|
|
index b655d1c79c..3de34e36f2 100644
|
|
--- a/src/3rdparty/chromium/sandbox/linux/suid/sandbox.c
|
|
+++ b/src/3rdparty/chromium/sandbox/linux/suid/sandbox.c
|
|
@@ -44,6 +44,15 @@ static bool DropRoot();
|
|
|
|
#define HANDLE_EINTR(x) TEMP_FAILURE_RETRY(x)
|
|
|
|
+#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 void FatalError(const char* msg, ...)
|
|
__attribute__((noreturn, format(printf, 1, 2)));
|
|
|