22 lines
765 B
Diff
22 lines
765 B
Diff
This macro is defined in glibc, but not musl.
|
|
|
|
--- qt6-webengine-6.4.2.orig/src/3rdparty/chromium/sandbox/linux/suid/process_util.h
|
|
+++ qt6-webengine-6.4.2/src/3rdparty/chromium/sandbox/linux/suid/process_util.h
|
|
@@ -12,6 +12,16 @@
|
|
#include <stdint.h>
|
|
#include <sys/types.h>
|
|
|
|
+// Some additional functions
|
|
+#if !defined(TEMP_FAILURE_RETRY)
|
|
+# define TEMP_FAILURE_RETRY(expression) \
|
|
+ (__extension__ \
|
|
+ ({ long int __result; \
|
|
+ do __result = (long int) (expression); \
|
|
+ while (__result == -1L && errno == EINTR); \
|
|
+ __result; }))
|
|
+#endif
|
|
+
|
|
// 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.
|