Consolidate error.h inclusion in system.h
authorRoss Burton <ross.burton@intel.com>
Wed, 4 Jul 2018 11:11:08 +0000 (12:11 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 5 Jul 2018 19:06:40 +0000 (21:06 +0200)
error.h isn't standard and so isn't part of the musl C library.
To easy future porting, consolidate the inclusion of error.h into system.h.

https://sourceware.org/bugzilla/show_bug.cgi?id=21008

Signed-off-by: Ross Burton <ross.burton@intel.com>
67 files changed:
lib/ChangeLog
lib/color.c
lib/system.h
lib/xmalloc.c
libasm/ChangeLog
libasm/asm_end.c
libasm/asm_newscn.c
libcpu/i386_gendis.c
libcpu/i386_lex.l
libcpu/i386_parse.y
libdw/ChangeLog
libdw/libdw_alloc.c
libebl/ChangeLog
libebl/eblopenbackend.c
src/ChangeLog
src/addr2line.c
src/ar.c
src/arlib.c
src/arlib2.c
src/elfcmp.c
src/elfcompress.c
src/elflint.c
src/findtextrel.c
src/nm.c
src/objdump.c
src/ranlib.c
src/readelf.c
src/size.c
src/stack.c
src/strings.c
src/strip.c
src/unstrip.c
tests/ChangeLog
tests/addrscopes.c
tests/allregs.c
tests/backtrace-data.c
tests/backtrace-dwarf.c
tests/backtrace.c
tests/buildid.c
tests/debugaltlink.c
tests/debuglink.c
tests/deleted.c
tests/dwarfcfi.c
tests/dwfl-addr-sect.c
tests/dwfl-bug-addr-overflow.c
tests/dwfl-bug-fd-leak.c
tests/dwfl-bug-getmodules.c
tests/dwfl-proc-attach.c
tests/dwfl-report-elf-align.c
tests/dwfllines.c
tests/dwflmodtest.c
tests/dwflsyms.c
tests/early-offscn.c
tests/ecp.c
tests/elfstrmerge.c
tests/find-prologues.c
tests/funcretval.c
tests/funcscopes.c
tests/getsrc_die.c
tests/line2addr.c
tests/low_high_pc.c
tests/next_cfi.c
tests/rdwrmmap.c
tests/saridx.c
tests/sectiondump.c
tests/varlocs.c
tests/vdsosyms.c

index fbe34a8..86a53d2 100644 (file)
@@ -1,3 +1,9 @@
+2018-07-04  Ross Burton <ross.burton@intel.com>
+
+       * color.c: Remove error.h, add system.h include.
+       * system.h: Add error.h include.
+       * xmalloc.c: Remove error.h include.
+
 2018-06-01  Mark Wielaard  <mark@klomp.org>
 
        * printversion.c (print_version): Update copyright year.
index f62389d..9ffbf55 100644 (file)
 #endif
 
 #include <argp.h>
-#include <error.h>
 #include <libintl.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include "system.h"
 #include "libeu.h"
 #include "color.h"
 
index 9203335..292082b 100644 (file)
@@ -30,6 +30,7 @@
 #define LIB_SYSTEM_H   1
 
 #include <errno.h>
+#include <error.h>
 #include <stddef.h>
 #include <stdint.h>
 #include <sys/param.h>
index 0cde384..0424afc 100644 (file)
@@ -30,7 +30,6 @@
 # include <config.h>
 #endif
 
-#include <error.h>
 #include <libintl.h>
 #include <stddef.h>
 #include <stdlib.h>
index fffcced..2efd85f 100644 (file)
@@ -1,3 +1,11 @@
+2018-07-04  Ross Burton <ross.burton@intel.com>
+
+       * asm_end.c: Remove error.h include.
+       * asm_newscn.c: Likewise.
+       * i386_gendis.c: Likewise and add system.h include.
+       * i386_lex.l: Likewise.
+       * i386_parse.y: Likewise.
+
 2017-02-27  Ulf Hermann  <ulf.hermann@qt.io>
 
        * Makefile.am: Use dso_LDFLAGS.
index ced24f5..5aab8df 100644 (file)
@@ -32,7 +32,6 @@
 #endif
 
 #include <assert.h>
-#include <error.h>
 #include <libintl.h>
 #include <stdio.h>
 #include <stdlib.h>
index ddbb25d..7cdf484 100644 (file)
@@ -32,7 +32,6 @@
 #endif
 
 #include <assert.h>
-#include <error.h>
 #include <libintl.h>
 #include <stdlib.h>
 #include <string.h>
index aae5eae..37d2ecd 100644 (file)
 # include <config.h>
 #endif
 
-#include <error.h>
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-
+#include "system.h"
 
 extern int i386_parse (void);
 
index ef1b53b..a4705aa 100644 (file)
 #endif
 
 #include <ctype.h>
-#include <error.h>
 #include <libintl.h>
 
 #include <libeu.h>
+#include "system.h"
 #include "i386_parse.h"
 
 
index 5fc0682..910d545 100644 (file)
@@ -34,7 +34,6 @@
 #include <assert.h>
 #include <ctype.h>
 #include <errno.h>
-#include <error.h>
 #include <inttypes.h>
 #include <libintl.h>
 #include <math.h>
index da7ed9d..cb4f34e 100644 (file)
@@ -1,3 +1,7 @@
+2018-07-04  Ross Burton <ross.burton@intel.com>
+
+       * libdw_alloc.c: Remove error.h include.
+
 2018-06-28  Mark Wielaard  <mark@klomp.org>
 
        * dwarf_next_cfi.c (dwarf_next_cfi): Check whether length is zero.
index d6af23a..f1e0871 100644 (file)
@@ -31,7 +31,6 @@
 # include <config.h>
 #endif
 
-#include <error.h>
 #include <errno.h>
 #include <stdlib.h>
 #include "libdwP.h"
index aa82e3a..f76afd1 100644 (file)
@@ -1,3 +1,7 @@
+2018-07-04  Ross Burton <ross.burton@intel.com>
+
+       * eblopenbackend.c: Remove error.h include.
+
 2018-04-25  Mark Wielaard  <mark@klomp.org>
 
        * eblopenbackend.c (default_debugscn_p): Add new DWARF5 sections
index 8b063f4..1962e60 100644 (file)
@@ -32,7 +32,6 @@
 
 #include <assert.h>
 #include <dlfcn.h>
-#include <error.h>
 #include <libelfP.h>
 #include <dwarf.h>
 #include <stdlib.h>
index 6d962bb..606a597 100644 (file)
@@ -1,3 +1,22 @@
+2018-07-04  Ross Burton <ross.burton@intel.com>
+
+       * addr2line.c: Remove error.h include.
+       * ar.c: Likewise.
+       * arlib.c: Likewise and add system.h include.
+       * arlib2.c: Likewise.
+       * elfcmp.c: Likewise.
+       * elfcompress.c: Likewise.
+       * elflint.c: Likewise.
+       * findtextrel.c: Likewise.
+       * nm.c: Likewise.
+       * objdump.c: Likewise.
+       * ranlib.c: Likewise.
+       * readelf.c: Likewise.
+       * stack.c: Likewise.
+       * strings.c: Likewise.
+       * strip.c: Likewise.
+       * unstrip.c: Likewise.
+
 2018-06-25  Mark Wielaard  <mark@klomp.org>
 
        * readelf.c (print_decoded_line_section): Use dwarf_next_lines
index 5acafa0..b7eb893 100644 (file)
@@ -23,7 +23,6 @@
 #include <argp.h>
 #include <assert.h>
 #include <errno.h>
-#include <error.h>
 #include <fcntl.h>
 #include <inttypes.h>
 #include <libdwfl.h>
index 818115b..6f98f75 100644 (file)
--- a/src/ar.c
+++ b/src/ar.c
@@ -22,7 +22,6 @@
 
 #include <argp.h>
 #include <assert.h>
-#include <error.h>
 #include <fcntl.h>
 #include <gelf.h>
 #include <libintl.h>
index e0839aa..778e087 100644 (file)
@@ -21,7 +21,6 @@
 #endif
 
 #include <assert.h>
-#include <error.h>
 #include <gelf.h>
 #include <inttypes.h>
 #include <libintl.h>
@@ -31,6 +30,7 @@
 
 #include <libeu.h>
 
+#include "system.h"
 #include "arlib.h"
 
 
index 553fc57..11f44e5 100644 (file)
@@ -20,7 +20,6 @@
 # include <config.h>
 #endif
 
-#include <error.h>
 #include <libintl.h>
 #include <limits.h>
 #include <string.h>
index 5046420..b40df8b 100644 (file)
@@ -23,7 +23,6 @@
 #include <argp.h>
 #include <assert.h>
 #include <errno.h>
-#include <error.h>
 #include <fcntl.h>
 #include <locale.h>
 #include <libintl.h>
@@ -36,7 +35,7 @@
 #include <printversion.h>
 #include "../libelf/elf-knowledge.h"
 #include "../libebl/libeblP.h"
-
+#include "system.h"
 
 /* Prototypes of local functions.  */
 static Elf *open_file (const char *fname, int *fdp, Ebl **eblp);
index 25378a4..bdb0e3b 100644 (file)
@@ -18,7 +18,6 @@
 #include <config.h>
 #include <assert.h>
 #include <argp.h>
-#include <error.h>
 #include <stdbool.h>
 #include <stdlib.h>
 #include <inttypes.h>
@@ -34,6 +33,7 @@
 #include ELFUTILS_HEADER(ebl)
 #include ELFUTILS_HEADER(dwelf)
 #include <gelf.h>
+#include "system.h"
 #include "libeu.h"
 #include "printversion.h"
 
index 0a26d97..eec799b 100644 (file)
@@ -24,7 +24,6 @@
 #include <assert.h>
 #include <byteswap.h>
 #include <endian.h>
-#include <error.h>
 #include <fcntl.h>
 #include <gelf.h>
 #include <inttypes.h>
index 8f1e239..4973159 100644 (file)
@@ -23,7 +23,6 @@
 #include <argp.h>
 #include <assert.h>
 #include <errno.h>
-#include <error.h>
 #include <fcntl.h>
 #include <gelf.h>
 #include <libdw.h>
@@ -37,7 +36,7 @@
 #include <unistd.h>
 
 #include <printversion.h>
-
+#include "system.h"
 
 struct segments
 {
index 969c6d3..ffe8ca6 100644 (file)
--- a/src/nm.c
+++ b/src/nm.c
@@ -26,7 +26,6 @@
 #include <ctype.h>
 #include <dwarf.h>
 #include <errno.h>
-#include <error.h>
 #include <fcntl.h>
 #include <gelf.h>
 #include <inttypes.h>
index 0dd9a6a..6b365d5 100644 (file)
@@ -21,7 +21,6 @@
 #endif
 
 #include <argp.h>
-#include <error.h>
 #include <fcntl.h>
 #include <inttypes.h>
 #include <libintl.h>
index cc0ee23..b908348 100644 (file)
@@ -24,7 +24,6 @@
 #include <argp.h>
 #include <assert.h>
 #include <errno.h>
-#include <error.h>
 #include <fcntl.h>
 #include <gelf.h>
 #include <libintl.h>
index faed61a..7cf0d18 100644 (file)
@@ -24,7 +24,6 @@
 #include <ctype.h>
 #include <dwarf.h>
 #include <errno.h>
-#include <error.h>
 #include <fcntl.h>
 #include <gelf.h>
 #include <inttypes.h>
index ad8dbcb..5ff3f2a 100644 (file)
@@ -21,7 +21,6 @@
 #endif
 
 #include <argp.h>
-#include <error.h>
 #include <fcntl.h>
 #include <gelf.h>
 #include <inttypes.h>
index 52ae3a8..c5f347e 100644 (file)
@@ -18,7 +18,6 @@
 #include <config.h>
 #include <assert.h>
 #include <argp.h>
-#include <error.h>
 #include <stdlib.h>
 #include <inttypes.h>
 #include <stdio.h>
index 03d0f13..ef40d5e 100644 (file)
@@ -25,7 +25,6 @@
 #include <ctype.h>
 #include <endian.h>
 #include <errno.h>
-#include <error.h>
 #include <fcntl.h>
 #include <gelf.h>
 #include <inttypes.h>
index 773ed54..791347c 100644 (file)
@@ -24,7 +24,6 @@
 #include <assert.h>
 #include <byteswap.h>
 #include <endian.h>
-#include <error.h>
 #include <fcntl.h>
 #include <fnmatch.h>
 #include <gelf.h>
index f368e69..057efef 100644 (file)
@@ -31,7 +31,6 @@
 #include <argp.h>
 #include <assert.h>
 #include <errno.h>
-#include <error.h>
 #include <fcntl.h>
 #include <fnmatch.h>
 #include <libintl.h>
@@ -48,6 +47,7 @@
 #include <gelf.h>
 #include <libebl.h>
 #include <libdwfl.h>
+#include "system.h"
 #include "libdwelf.h"
 #include "libeu.h"
 #include "printversion.h"
index 765a874..61b5037 100644 (file)
@@ -1,3 +1,40 @@
+2018-07-04  Ross Burton <ross.burton@intel.com>
+
+       * addrscopes.c: Remove error.h include, add system.h include.
+       * allregs.c: Likewise.
+       * backtrace-data.c: Likewise.
+       * backtrace-dwarf.c: Likewise.
+       * backtrace.c: Likewise.
+       * buildid.c: Likewise.
+       * debugaltlink.c: Likewise.
+       * debuglink.c: Likewise.
+       * deleted.c : Likewise.
+       * dwarfcfi.c: Likewise.
+       * dwfl-addr-sect.c: Likewise.
+       * dwfl-bug-addr-overflow.c: Likewise.
+       * dwfl-bug-fd-leak.c: Likewise.
+       * dwfl-bug-getmodules.c: Likewise.
+       * dwfl-proc-attach.c: Likewise.
+       * dwfl-report-elf-align.c: Likewise.
+       * dwfllines.c: Likewise.
+       * dwflmodtest.c: Likewise.
+       * dwflsyms.c: Likewise.
+       * early-offscn.c: Likewise
+       * ecp.c: Likewise.
+       * elfstrmerge.c: Likewise.
+       * find-prologues.c: Likewise.
+       * funcretval.c: Likewise.
+       * funcscopes.c: Likewise.
+       * getsrc_die.c: Likewise.
+       * line2addr.c: Likewise.
+       * low_high_pc.c: Likewise.
+       * next_cfi.c: Likewise.
+       * rdwrmmap.c: Likewise.
+       * saridx.c: Likewise.
+       * sectiondump.c: Likewise.
+       * varlocs.c: Likewise.
+       * vdsosyms.c: Likewise.
+
 2018-06-28  Mark Wielaard  <mark@klomp.org>
 
        * next_cfi.c: New file.
index 791569f..b231b6a 100644 (file)
@@ -25,8 +25,8 @@
 #include <stdio_ext.h>
 #include <locale.h>
 #include <stdlib.h>
-#include <error.h>
 #include <string.h>
+#include "system.h"
 
 
 static void
index 286f7e3..f18f0b2 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <error.h>
 #include <locale.h>
 #include <argp.h>
 #include <assert.h>
 #include ELFUTILS_HEADER(dwfl)
 #include <dwarf.h>
 
+#include "system.h"
 #include "../libdw/known-dwarf.h"
 
 static const char *
index a387d8f..67ecd47 100644 (file)
@@ -27,7 +27,6 @@
 #include <dirent.h>
 #include <stdlib.h>
 #include <errno.h>
-#include <error.h>
 #include <unistd.h>
 #include <dwarf.h>
 #if defined(__x86_64__) && defined(__linux__)
@@ -41,6 +40,7 @@
 #include <string.h>
 #include ELFUTILS_HEADER(dwfl)
 #endif
+#include "system.h"
 
 #if !defined(__x86_64__) || !defined(__linux__)
 
index 7ff826c..e1eb492 100644 (file)
 #include <stdio_ext.h>
 #include <locale.h>
 #include <errno.h>
-#include <error.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include ELFUTILS_HEADER(dwfl)
+#include "system.h"
 
 #ifndef __linux__
 
index f5dd761..24ab68d 100644 (file)
@@ -24,7 +24,6 @@
 #include <dirent.h>
 #include <stdlib.h>
 #include <errno.h>
-#include <error.h>
 #include <unistd.h>
 #include <dwarf.h>
 #ifdef __linux__
@@ -39,6 +38,7 @@
 #include <argp.h>
 #include ELFUTILS_HEADER(dwfl)
 #endif
+#include "system.h"
 
 #ifndef __linux__
 
index 87c1877..2390eff 100644 (file)
 #include ELFUTILS_HEADER(elf)
 #include ELFUTILS_HEADER(dwelf)
 #include <stdio.h>
-#include <error.h>
 #include <string.h>
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
+#include "system.h"
 
 int
 main (int argc, char *argv[])
index 6d97d50..e7dc862 100644 (file)
 #include ELFUTILS_HEADER(dw)
 #include ELFUTILS_HEADER(dwelf)
 #include <stdio.h>
-#include <error.h>
 #include <string.h>
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
+#include "system.h"
 
 int
 main (int argc, char *argv[])
index 935d102..f92b9b5 100644 (file)
 #include <errno.h>
 #include ELFUTILS_HEADER(dwelf)
 #include <stdio.h>
-#include <error.h>
 #include <string.h>
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
+#include "system.h"
 
 int
 main (int argc, char *argv[])
index 6be35bc..f4e8f76 100644 (file)
@@ -21,7 +21,6 @@
 #include <unistd.h>
 #include <assert.h>
 #include <stdio.h>
-#include <error.h>
 #include <errno.h>
 #ifdef __linux__
 #include <sys/prctl.h>
index db4a36f..29849e7 100644 (file)
@@ -18,7 +18,6 @@
 #include <config.h>
 #include <assert.h>
 #include <inttypes.h>
-#include <error.h>
 #include ELFUTILS_HEADER(dw)
 #include <dwarf.h>
 #include <argp.h>
@@ -30,6 +29,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include "system.h"
 #include "../libdw/known-dwarf.h"
 
 static const char *
index 21e470a..4d85c00 100644 (file)
 #include <stdio_ext.h>
 #include <stdlib.h>
 #include <string.h>
-#include <error.h>
 #include <locale.h>
 #include <argp.h>
 #include ELFUTILS_HEADER(dwfl)
 #include <dwarf.h>
+#include "system.h"
 
 static int
 handle_address (Dwfl *dwfl, Dwarf_Addr address)
index aa8030e..9a3373a 100644 (file)
@@ -20,7 +20,6 @@
 #include <inttypes.h>
 #include <stdio.h>
 #include <stdio_ext.h>
-#include <error.h>
 #include <locale.h>
 #include ELFUTILS_HEADER(dwfl)
 
index 689cdd7..ee3a916 100644 (file)
@@ -24,9 +24,9 @@
 #include <dirent.h>
 #include <stdlib.h>
 #include <errno.h>
-#include <error.h>
 #include <unistd.h>
 #include <dwarf.h>
+#include "system.h"
 
 #ifndef __linux__
 int
index 1ee989f..2783f65 100644 (file)
@@ -17,8 +17,8 @@
 
 #include <config.h>
 #include ELFUTILS_HEADER(dwfl)
+#include "system.h"
 
-#include <error.h>
 
 static const Dwfl_Callbacks callbacks =
   {
index e7bb201..102ba18 100644 (file)
@@ -20,7 +20,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
-#include <error.h>
 #include <unistd.h>
 #ifdef __linux__
 #include <sys/types.h>
@@ -31,6 +30,7 @@
 #include ELFUTILS_HEADER(dwfl)
 #include <pthread.h>
 #endif
+#include "system.h"
 
 #ifndef __linux__
 int
index a4e97d3..6558ab8 100644 (file)
 #include <inttypes.h>
 #include <stdio.h>
 #include <stdio_ext.h>
-#include <error.h>
 #include <locale.h>
 #include <string.h>
 #include <stdlib.h>
 #include ELFUTILS_HEADER(dwfl)
+#include "system.h"
 
 
 static const Dwfl_Callbacks offline_callbacks =
index 90379dd..d732e40 100644 (file)
@@ -27,7 +27,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <error.h>
+#include "system.h"
 
 int
 main (int argc, char *argv[])
index 0027f96..9251d15 100644 (file)
 #include <stdio_ext.h>
 #include <stdlib.h>
 #include <string.h>
-#include <error.h>
 #include <locale.h>
 #include <argp.h>
 #include ELFUTILS_HEADER(dwfl)
 #include <dwarf.h>
+#include "system.h"
 
 static bool show_inlines;
 
index 49ac334..bc23cb6 100644 (file)
@@ -25,7 +25,6 @@
 #include <stdio.h>
 #include <stdio_ext.h>
 #include <stdlib.h>
-#include <error.h>
 #include <string.h>
 
 static const char *
index 924cb9e..af29da5 100644 (file)
 #endif
 
 #include <errno.h>
-#include <error.h>
 #include <fcntl.h>
 #include <gelf.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include "system.h"
 
 int
 main (int argc, char *argv[])
index 38a6859..1df40a3 100644 (file)
 #endif
 
 #include <errno.h>
-#include <error.h>
 #include <fcntl.h>
 #include <gelf.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include "system.h"
 
 int
 main (int argc, char *argv[])
index 3bb90c4..ba0d68d 100644 (file)
@@ -24,7 +24,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <error.h>
 #include <stdio.h>
 #include <inttypes.h>
 #include <unistd.h>
index ba8ae37..b0bf936 100644 (file)
@@ -25,9 +25,9 @@
 #include <stdio_ext.h>
 #include <locale.h>
 #include <stdlib.h>
-#include <error.h>
 #include <string.h>
 #include <fnmatch.h>
+#include "system.h"
 
 
 struct args
index 8d19d11..16cd1a4 100644 (file)
@@ -25,9 +25,9 @@
 #include <stdio_ext.h>
 #include <locale.h>
 #include <stdlib.h>
-#include <error.h>
 #include <string.h>
 #include <fnmatch.h>
+#include "system.h"
 
 
 struct args
index 9c90185..689d376 100644 (file)
@@ -25,9 +25,9 @@
 #include <stdio_ext.h>
 #include <locale.h>
 #include <stdlib.h>
-#include <error.h>
 #include <string.h>
 #include <fnmatch.h>
+#include "system.h"
 
 
 static void
index 055aede..f878fa6 100644 (file)
@@ -19,7 +19,6 @@
 #endif
 
 #include <errno.h>
-#include <error.h>
 #include <fcntl.h>
 #include <inttypes.h>
 #include <libelf.h>
@@ -27,6 +26,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include "system.h"
 
 
 int
index e0d65d3..663746f 100644 (file)
@@ -26,7 +26,7 @@
 #include <locale.h>
 #include <stdlib.h>
 #include <string.h>
-#include <error.h>
+#include "system.h"
 
 
 static void
index 5c6b343..78b6ad0 100644 (file)
@@ -25,7 +25,6 @@
 #include <stdio_ext.h>
 #include <locale.h>
 #include <stdlib.h>
-#include <error.h>
 #include <string.h>
 #include <fnmatch.h>
 
index b923744..fae0028 100644 (file)
@@ -18,7 +18,6 @@
 #include <config.h>
 #include <assert.h>
 #include <inttypes.h>
-#include <error.h>
 #include ELFUTILS_HEADER(dw)
 #include <dwarf.h>
 #include <argp.h>
@@ -31,6 +30,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include "system.h"
 
 void
 handle_section (const unsigned char e_ident[],
index 6f027df..490a4ee 100644 (file)
 #endif
 
 #include <errno.h>
-#include <error.h>
 #include <stdio.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <libelf.h>
+#include "system.h"
 
 int
 main (int argc __attribute__ ((unused)), char *argv[])
index 8a450d8..e7f0c56 100644 (file)
@@ -17,7 +17,6 @@
 
 #include <config.h>
 
-#include <error.h>
 #include <fcntl.h>
 #include <gelf.h>
 #include <stdio.h>
@@ -25,6 +24,7 @@
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
+#include "system.h"
 
 
 static const char *machines[] =
index 3033fed..f33484f 100644 (file)
 #include <config.h>
 
 #include <errno.h>
-#include <error.h>
 #include <fcntl.h>
 #include <gelf.h>
 #include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include "system.h"
 
 
 /* Prototypes for local functions.  */
index 2512439..4050519 100644 (file)
 #include <dwarf.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <error.h>
 #include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
 
+#include "system.h"
 #include "../libdw/known-dwarf.h"
 
 // The Dwarf, Dwarf_CFIs and address bias of
index b876c10..7bfa738 100644 (file)
 #include <config.h>
 #include <assert.h>
 #include <errno.h>
-#include <error.h>
 #include <inttypes.h>
 #include <stdio.h>
 #include <string.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include ELFUTILS_HEADER(dwfl)
+#include "system.h"
 
 #ifndef __linux__
 int