From e893aab0d12284c8909ebacfca529c0b554abb9c Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 4 Jul 2018 12:11:08 +0100 Subject: 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 --- lib/ChangeLog | 6 ++++++ lib/color.c | 2 +- lib/system.h | 1 + lib/xmalloc.c | 1 - 4 files changed, 8 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/ChangeLog b/lib/ChangeLog index fbe34a82..86a53d2c 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2018-07-04 Ross Burton + + * 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 * printversion.c (print_version): Update copyright year. diff --git a/lib/color.c b/lib/color.c index f62389d5..9ffbf55f 100644 --- a/lib/color.c +++ b/lib/color.c @@ -32,11 +32,11 @@ #endif #include -#include #include #include #include #include +#include "system.h" #include "libeu.h" #include "color.h" diff --git a/lib/system.h b/lib/system.h index 92033355..292082bd 100644 --- a/lib/system.h +++ b/lib/system.h @@ -30,6 +30,7 @@ #define LIB_SYSTEM_H 1 #include +#include #include #include #include diff --git a/lib/xmalloc.c b/lib/xmalloc.c index 0cde384f..0424afc8 100644 --- a/lib/xmalloc.c +++ b/lib/xmalloc.c @@ -30,7 +30,6 @@ # include #endif -#include #include #include #include -- cgit v1.2.3