summaryrefslogtreecommitdiff
path: root/app-misc/hddled/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-09-06 10:25:44 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-09-06 10:25:44 +0100
commit64b277f858d171900cba8a53e675ef8c3ff893fc (patch)
tree7a19533ece87b58d4bbcc04d91701aaf888b0d99 /app-misc/hddled/files
parentededf7351b15c0df4d166af8fc7928bd1a0b2c8e (diff)
gentoo auto-resync : 06:09:2023 - 10:25:44
Diffstat (limited to 'app-misc/hddled/files')
-rw-r--r--app-misc/hddled/files/hddled-0.3-fix-missing-temp_failure_retry.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/app-misc/hddled/files/hddled-0.3-fix-missing-temp_failure_retry.patch b/app-misc/hddled/files/hddled-0.3-fix-missing-temp_failure_retry.patch
new file mode 100644
index 000000000000..cff8347a212a
--- /dev/null
+++ b/app-misc/hddled/files/hddled-0.3-fix-missing-temp_failure_retry.patch
@@ -0,0 +1,19 @@
+Bug: https://bugs.gentoo.org/894550
+--- a/hddled.c
++++ b/hddled.c
+@@ -43,6 +43,15 @@
+
+ #define PACKAGE_STRING "hddled 0.3"
+ #define PACKAGE_BUGREPORT "hddled@very.puzzling.org"
++/* 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
+
+ #define VMSTAT "/proc/vmstat"
+