ell: fix build with musl libc
PATCH 1/1 ell: fix build with musl libc
From: "Maxin B. John" <[email protected]>
musl libc doesn't implement TEMP_FAILURE_RETRY. Use the TEMP_FAILURE_RETRY from glibc to fix build.
--- ell/dbus.h | 10 ++++++++++ 1 file changed, 10 insertions(+)
ell/dbus.h +10 -0
@@ -28,6 +28,16 @@#include <stddef.h> #include <stdarg.h> +/* taken from glibc unistd.h for musl support */ +#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 +#ifdef __cplusplusextern "C" {#endif
Signature · 1 line
2.4.0
Denis Kenzior
AppliedHi Maxin,
Quoted 8 lines · maxin.john(a)gmail.com
From: "Maxin B. John" <[email protected]>
musl libc doesn't implement
TEMP_FAILURE_RETRY. Use theTEMP_FAILURE_RETRYfrom glibc to fix build.--- ell/dbus.h | 10 ++++++++++ 1 file changed, 10 insertions(+)
Applied, thanks.
Regards,
-Denis