summaryrefslogtreecommitdiffstats
path: root/src/ranlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ranlib.c')
-rw-r--r--src/ranlib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ranlib.c b/src/ranlib.c
index 1914a178..ce2e6820 100644
--- a/src/ranlib.c
+++ b/src/ranlib.c
@@ -40,6 +40,11 @@
#include <system.h>
+#define pread_retry(fd, buf, n, off) \
+ TEMP_FAILURE_RETRY (pread (fd, buf, n, off))
+#define write_retry(fd, buf, n) \
+ TEMP_FAILURE_RETRY (write (fd, buf, n))
+
#if __BYTE_ORDER == __LITTLE_ENDIAN
# define le_bswap_32(val) bswap_32 (val)
#else