Fix TEMP_FAILURE_RETRY definition when not defined.
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>
Thu, 29 Dec 2016 23:02:57 +0000 (21:02 -0200)
committerMark Wielaard <mark@klomp.org>
Thu, 29 Dec 2016 23:54:22 +0000 (00:54 +0100)
https://sourceware.org/bugzilla/show_bug.cgi?id=21001

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
lib/ChangeLog
lib/crc32_file.c
lib/system.h
libdwfl/ChangeLog
libdwfl/dwfl_build_id_find_elf.c
libdwfl/dwfl_module_getdwarf.c
libdwfl/libdwfl_crc32_file.c

index 1fe5906..fcf5b10 100644 (file)
@@ -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.
index a8434d4..57e4298 100644 (file)
@@ -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)
index ccd99d6..dde7c4a 100644 (file)
@@ -81,7 +81,7 @@
      do \
        __res = expression; \
      while (__res == -1 && errno == EINTR); \
-     __res; });
+     __res; })
 #endif
 
 static inline ssize_t __attribute__ ((unused))
index bc627fe..57671ea 100644 (file)
@@ -1,3 +1,9 @@
+2016-12-29  Luiz Angelo Daros de Luca  <luizluca@gmail.com>
+
+       * dwfl_build_id_find_elf.c: Include system.h.
+       * dwfl_module_getdwarf.c: Likewise.
+       * libdwfl_crc32_file.c: Don't define LIB_SYSTEM_H.
+
 2016-11-23  Mark Wielaard  <mjw@redhat.com>
 
        * linux-kernel-modules.c: Only include fts.h early if BAD_FTS is
index 903e193..d4737c9 100644 (file)
@@ -30,6 +30,7 @@
 #include <inttypes.h>
 #include <fcntl.h>
 #include <unistd.h>
+#include "system.h"
 
 
 int
index 0e8810b..46caece 100644 (file)
@@ -33,6 +33,7 @@
 #include <unistd.h>
 #include "../libdw/libdwP.h"   /* DWARF_E_* values are here.  */
 #include "../libelf/libelfP.h"
+#include "system.h"
 
 static inline Dwfl_Error
 open_elf_file (Elf **elf, int *fd, char **name)
index 6b6b7d3..f849128 100644 (file)
@@ -31,6 +31,5 @@
 
 #define crc32_file attribute_hidden __libdwfl_crc32_file
 #define crc32 __libdwfl_crc32
-#define LIB_SYSTEM_H   1
 #include <libdwflP.h>
 #include "../lib/crc32_file.c"