From: Luiz Angelo Daros de Luca Date: Thu, 29 Dec 2016 23:02:57 +0000 (-0200) Subject: Fix TEMP_FAILURE_RETRY definition when not defined. X-Git-Tag: elfutils-0.169~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=925f67e86d127c8917f92bde1cf5abd5b07d0768;p=thirdparty%2Felfutils.git 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 --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 1fe59067e..fcf5b1051 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2016-12-29 Luiz Angelo Daros de Luca + + * crc32_file.c: Include system.h. + * system.h: Remove semi-colon after TEMP_FAILURE_RETRY definition. + 2016-12-24 Mark Wielaard * version.c: New source file. diff --git a/lib/crc32_file.c b/lib/crc32_file.c index a8434d428..57e429807 100644 --- a/lib/crc32_file.c +++ b/lib/crc32_file.c @@ -35,6 +35,7 @@ #include #include #include +#include "system.h" int crc32_file (int fd, uint32_t *resp) diff --git a/lib/system.h b/lib/system.h index ccd99d63e..dde7c4a22 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)) diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index bc627fee5..57671eafa 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,3 +1,9 @@ +2016-12-29 Luiz Angelo Daros de Luca + + * 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 * linux-kernel-modules.c: Only include fts.h early if BAD_FTS is diff --git a/libdwfl/dwfl_build_id_find_elf.c b/libdwfl/dwfl_build_id_find_elf.c index 903e19319..d4737c9f1 100644 --- a/libdwfl/dwfl_build_id_find_elf.c +++ b/libdwfl/dwfl_build_id_find_elf.c @@ -30,6 +30,7 @@ #include #include #include +#include "system.h" int diff --git a/libdwfl/dwfl_module_getdwarf.c b/libdwfl/dwfl_module_getdwarf.c index 0e8810b1f..46caece58 100644 --- a/libdwfl/dwfl_module_getdwarf.c +++ b/libdwfl/dwfl_module_getdwarf.c @@ -33,6 +33,7 @@ #include #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) diff --git a/libdwfl/libdwfl_crc32_file.c b/libdwfl/libdwfl_crc32_file.c index 6b6b7d3ff..f849128d8 100644 --- a/libdwfl/libdwfl_crc32_file.c +++ b/libdwfl/libdwfl_crc32_file.c @@ -31,6 +31,5 @@ #define crc32_file attribute_hidden __libdwfl_crc32_file #define crc32 __libdwfl_crc32 -#define LIB_SYSTEM_H 1 #include #include "../lib/crc32_file.c"