aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libdvbv5/dvb-dev-local.c
diff options
context:
space:
mode:
authorPeter Seiderer <ps.report@gmx.net>2018-03-04 08:42:04 (GMT)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-06 17:48:16 (GMT)
commitc28248deeb2d7fe43fcde948c00b9b8fa2bc1e8f (patch)
treeec718c9475f8a9ab6e691a1c3e2dcdd47be61885 /lib/libdvbv5/dvb-dev-local.c
parenta3367e92f4b06667a36fb9485f22f7df52891a2f (diff)
libdvbv5: fix musl compile
Add optional copy of TEMP_FAILURE_RETRY macro in order to fix musl compile. Fixes: ../../lib/libdvbv5/.libs/libdvbv5.so: undefined reference to `TEMP_FAILURE_RETRY' Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Diffstat (limited to 'lib/libdvbv5/dvb-dev-local.c')
-rw-r--r--lib/libdvbv5/dvb-dev-local.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libdvbv5/dvb-dev-local.c b/lib/libdvbv5/dvb-dev-local.c
index 8bc99d1..7a76d65 100644
--- a/lib/libdvbv5/dvb-dev-local.c
+++ b/lib/libdvbv5/dvb-dev-local.c
@@ -44,6 +44,15 @@
# define _(string) string
#endif
+/* taken from glibc unistd.h */
+#ifndef TEMP_FAILURE_RETRY
+#define TEMP_FAILURE_RETRY(expression) \
+ ({ long int __result; \
+ do __result = (long int) (expression); \
+ while (__result == -1L && errno == EINTR); \
+ __result; })
+#endif
+
struct dvb_dev_local_priv {
dvb_dev_change_t notify_dev_change;

Privacy Policy