[PATCH] test/ivi: include protocol headers for all used protocols

Bill Spitzak spitzak at gmail.com
Fri May 22 11:45:56 PDT 2015


This seems like a good idea for consistency that the protocol header
is included for any protocols used by the code. This also means the
code will compile with headers generated by wayland-scanner -c.

Fixed to use angle brackets.
---
 clients/ivi-shell-user-interface.c |    1 +
 tests/weston-test-client-helper.h  |    1 +
 2 files changed, 2 insertions(+)

diff --git a/clients/ivi-shell-user-interface.c b/clients/ivi-shell-user-interface.c
index a83f9ad..dcc49ed 100644
--- a/clients/ivi-shell-user-interface.c
+++ b/clients/ivi-shell-user-interface.c
@@ -32,6 +32,7 @@
 #include <sys/mman.h>
 #include <getopt.h>
 #include <wayland-cursor.h>
+#include <wayland-client-protocol.h>
 #include "../shared/cairo-util.h"
 #include "../shared/config-parser.h"
 #include "../shared/os-compatibility.h"
diff --git a/tests/weston-test-client-helper.h b/tests/weston-test-client-helper.h
index 8635471..4a4b56b 100644
--- a/tests/weston-test-client-helper.h
+++ b/tests/weston-test-client-helper.h
@@ -27,6 +27,7 @@
 
 #include <assert.h>
 #include <stdbool.h>
+#include <wayland-client-protocol.h>
 #include "weston-test-runner.h"
 #include "weston-test-client-protocol.h"
 
-- 
1.7.9.5



More information about the wayland-devel mailing list