OSDN Git Service

add missing include
authorMichael Olbrich <m.olbrich@pengutronix.de>
Mon, 4 Aug 2014 17:05:18 +0000 (19:05 +0200)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 29 Jan 2015 04:01:21 +0000 (12:01 +0800)
Without this building without HAVE_VA_X11 fails with:
[...]
In file included from i965_drv_video.c:37:0:
i965_output_wayland.h:31:26: error: unknown type name 'VADriverContextP'
i965_output_wayland.h:34:31: error: unknown type name 'VADriverContextP'
i965_drv_video.c:5243:9: error: 'i965_output_wayland_init' undeclared here (not in a function)
i965_drv_video.c:5244:9: error: 'i965_output_wayland_terminate' undeclared here (not in a function)
[....]

src/i965_output_wayland.h

index 61ca39f..acea8d9 100644 (file)
@@ -26,6 +26,7 @@
 #define I965_OUTPUT_WAYLAND_H
 
 #include <stdbool.h>
+#include <va/va_backend.h>
 
 bool
 i965_output_wayland_init(VADriverContextP ctx);