From a3730271d52542757ec0f41acc29e7730501f666 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Mon, 24 Mar 2014 17:32:10 +0000 Subject: [PATCH] Fix build when configured --enable-debug Include os.h for ErrorF() to fix implicit-function-declaration warnings when configured with --enable-debug. hw/xfree86/parser/DRI.c: In function 'xf86parseDRISection': hw/xfree86/parser/DRI.c:87:5: error: implicit declaration of function 'ErrorF' [-Werror=implicit-function-declaration] hw/xfree86/parser/Extensions.c: In function 'xf86parseExtensionsSection': hw/xfree86/parser/Extensions.c:77:5: error: implicit declaration of function 'ErrorF' [-Werror=implicit-function-declaration] Signed-off-by: Jon TURNEY Reviewed-by: Julien Cristau --- hw/xfree86/parser/DRI.c | 1 + hw/xfree86/parser/Extensions.c | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/xfree86/parser/DRI.c b/hw/xfree86/parser/DRI.c index ad053f746..6be32d7ea 100644 --- a/hw/xfree86/parser/DRI.c +++ b/hw/xfree86/parser/DRI.c @@ -31,6 +31,7 @@ #include #endif +#include "os.h" #include "xf86Parser.h" #include "xf86tokens.h" #include "Configint.h" diff --git a/hw/xfree86/parser/Extensions.c b/hw/xfree86/parser/Extensions.c index b5ba72e5f..a6fcb56f0 100644 --- a/hw/xfree86/parser/Extensions.c +++ b/hw/xfree86/parser/Extensions.c @@ -35,6 +35,7 @@ #include #endif +#include "os.h" #include "xf86Parser.h" #include "xf86tokens.h" #include "Configint.h"