From: Jon TURNEY Date: Mon, 24 Mar 2014 17:32:10 +0000 (+0000) Subject: Fix build when configured --enable-debug X-Git-Tag: upstream/1.15.99.902~22^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3730271d52542757ec0f41acc29e7730501f666;p=platform%2Fupstream%2Fxorg-server.git 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 --- diff --git a/hw/xfree86/parser/DRI.c b/hw/xfree86/parser/DRI.c index ad053f7..6be32d7 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 b5ba72e..a6fcb56 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"