Fix build when configured --enable-debug
authorJon TURNEY <jon.turney@dronecode.org.uk>
Mon, 24 Mar 2014 17:32:10 +0000 (17:32 +0000)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Thu, 27 Mar 2014 14:34:32 +0000 (14:34 +0000)
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 <jon.turney@dronecode.org.uk>
Reviewed-by: Julien Cristau <jcristau@debian.org>
hw/xfree86/parser/DRI.c
hw/xfree86/parser/Extensions.c

index ad053f7..6be32d7 100644 (file)
@@ -31,6 +31,7 @@
 #include <xorg-config.h>
 #endif
 
+#include "os.h"
 #include "xf86Parser.h"
 #include "xf86tokens.h"
 #include "Configint.h"
index b5ba72e..a6fcb56 100644 (file)
@@ -35,6 +35,7 @@
 #include <xorg-config.h>
 #endif
 
+#include "os.h"
 #include "xf86Parser.h"
 #include "xf86tokens.h"
 #include "Configint.h"