summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-07-04 12:11:08 +0100
committerMark Wielaard <mark@klomp.org>2018-07-05 21:06:40 +0200
commite893aab0d12284c8909ebacfca529c0b554abb9c (patch)
tree7c50c7de9492e68b36ef7dbfedca4404aa198c60 /libcpu
parentd612684109f0395b86e4aaad9ba94e02f79a099a (diff)
downloadelfutils-e893aab0d12284c8909ebacfca529c0b554abb9c.tar.gz
Consolidate error.h inclusion in system.h
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>
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/i386_gendis.c3
-rw-r--r--libcpu/i386_lex.l2
-rw-r--r--libcpu/i386_parse.y1
3 files changed, 2 insertions, 4 deletions
diff --git a/libcpu/i386_gendis.c b/libcpu/i386_gendis.c
index aae5eae6..37d2ecd6 100644
--- a/libcpu/i386_gendis.c
+++ b/libcpu/i386_gendis.c
@@ -31,12 +31,11 @@
# 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);
diff --git a/libcpu/i386_lex.l b/libcpu/i386_lex.l
index ef1b53b6..a4705aa9 100644
--- a/libcpu/i386_lex.l
+++ b/libcpu/i386_lex.l
@@ -31,10 +31,10 @@
#endif
#include <ctype.h>
-#include <error.h>
#include <libintl.h>
#include <libeu.h>
+#include "system.h"
#include "i386_parse.h"
diff --git a/libcpu/i386_parse.y b/libcpu/i386_parse.y
index 5fc06825..910d5458 100644
--- a/libcpu/i386_parse.y
+++ b/libcpu/i386_parse.y
@@ -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>