From 936433a5deb6ccc8f8476096f2c2b8dc72c33388 Mon Sep 17 00:00:00 2001 From: zorz Date: Thu, 2 Apr 2026 01:11:55 +0300 Subject: chromium musl --- chromium/patches/027-temp-failure-retry.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 chromium/patches/027-temp-failure-retry.patch (limited to 'chromium/patches/027-temp-failure-retry.patch') diff --git a/chromium/patches/027-temp-failure-retry.patch b/chromium/patches/027-temp-failure-retry.patch new file mode 100644 index 0000000..dc9ac6f --- /dev/null +++ b/chromium/patches/027-temp-failure-retry.patch @@ -0,0 +1,22 @@ +random glibc macro, not provided by musl. +https://www.gnu.org/software/libc/manual/html_node/Interrupted-Primitives.html +diff --git a/sandbox/linux/suid/process_util.h b/sandbox/linux/suid/process_util.h +index b0b92c1bcc..db6a122ea8 100644 +--- a/sandbox/linux/suid/process_util.h ++++ b/sandbox/linux/suid/process_util.h +@@ -12,6 +12,15 @@ + #include + #include + ++#define TEMP_FAILURE_RETRY(expression) \ ++ (__extension__({ \ ++ long int __result; \ ++ do \ ++ __result = (long int)(expression); \ ++ while (__result == -1L && errno == EINTR); \ ++ __result; \ ++ })) ++ + // This adjusts /proc/process/oom_score_adj so the Linux OOM killer + // will prefer certain process types over others. The range for the + // adjustment is [-1000, 1000], with [0, 1000] being user accessible. -- cgit v1.2.3