void-packages/srcpkgs/dhewm3/patches/musl-temp_failure_retry.patch

19 lines
736 B
Diff

--- neo/sys/posix/posix_net.cpp 2016-06-19 01:48:20.000000000 +0200
+++ new/sys/posix/posix_net.cpp 2016-08-17 18:20:27.634588999 +0200
@@ -49,6 +49,15 @@
#include "sys/posix/posix_public.h"
+#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
+
idPort clientPort, serverPort;
IDcVar net_ip( "net_ip", "localhost", CVAR_SYSTEM, "local IP address" );