[PATCH] xv: Add missing gcstruct.h include

Thierry Reding thierry.reding at gmail.com
Wed Oct 29 08:59:27 PDT 2014


From: Thierry Reding <treding at nvidia.com>

Commit ea3f3b0786d5 (xv: Move xf86 XV color key helper to core.) added
code that uses internals of struct _GC. This structure is defined in the
include/gcstruct.h header which wasn't included by the source file, only
gc.h was. That caused the following build failure:

	  CC       xvmain.lo
	Xext/xvmain.c: In function 'XvFillColorKey':
	Xext/xvmain.c:1114:13: error: dereferencing pointer to incomplete type
	         (*gc->ops->PolyFillRect) (pDraw, gc, nbox, rects);
	             ^

Fix this by including the correct header file.

Signed-off-by: Thierry Reding <treding at nvidia.com>
---
 Xext/xvmain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Xext/xvmain.c b/Xext/xvmain.c
index bc176c852069..1f424402be39 100644
--- a/Xext/xvmain.c
+++ b/Xext/xvmain.c
@@ -86,7 +86,7 @@ SOFTWARE.
 #include "scrnintstr.h"
 #include "windowstr.h"
 #include "pixmapstr.h"
-#include "gc.h"
+#include "gcstruct.h"
 #include "extnsionst.h"
 #include "extinit.h"
 #include "dixstruct.h"
-- 
2.1.2



More information about the xorg-devel mailing list