summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>2016-12-29 21:02:57 -0200
committerMark Wielaard <mark@klomp.org>2016-12-30 00:54:22 +0100
commit925f67e86d127c8917f92bde1cf5abd5b07d0768 (patch)
tree7f02cf2f425a679e925bd7a0602e74361dd39f79 /lib
parent8b3b2180318facd002fced2dd148c8777b473d72 (diff)
downloadelfutils-925f67e86d127c8917f92bde1cf5abd5b07d0768.tar.gz
Fix TEMP_FAILURE_RETRY definition when not defined.
https://sourceware.org/bugzilla/show_bug.cgi?id=21001 Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/ChangeLog5
-rw-r--r--lib/crc32_file.c1
-rw-r--r--lib/system.h2
3 files changed, 7 insertions, 1 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 1fe59067..fcf5b105 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+2016-12-29 Luiz Angelo Daros de Luca <luizluca@gmail.com>
+
+ * crc32_file.c: Include system.h.
+ * system.h: Remove semi-colon after TEMP_FAILURE_RETRY definition.
+
2016-12-24 Mark Wielaard <mark@klomp.org>
* version.c: New source file.
diff --git a/lib/crc32_file.c b/lib/crc32_file.c
index a8434d42..57e42980 100644
--- a/lib/crc32_file.c
+++ b/lib/crc32_file.c
@@ -35,6 +35,7 @@
#include <unistd.h>
#include <sys/stat.h>
#include <sys/mman.h>
+#include "system.h"
int
crc32_file (int fd, uint32_t *resp)
diff --git a/lib/system.h b/lib/system.h
index ccd99d63..dde7c4a2 100644
--- a/lib/system.h
+++ b/lib/system.h
@@ -81,7 +81,7 @@
do \
__res = expression; \
while (__res == -1 && errno == EINTR); \
- __res; });
+ __res; })
#endif
static inline ssize_t __attribute__ ((unused))