Forcing --include-core-only on in wayland-scanner, the attached patch makes Weston compile. This involved adding two wayland-client-protocol.h includes.

IMHO it is better to require this small bit of editing than to continue to include a header with the comment "Use of this header file is discouraged" inside required header files.

A more complete patch would be to eradicate use of wayland-client.h everywhere. In most cases it is replaced with wayland-client-protocol.h though it should be checked when wayland-client-core.h works.
diff --git a/clients/ivi-shell-user-interface.c 
b/clients/ivi-shell-user-interface.c
index a83f9ad..031e9a9 100644
--- a/clients/ivi-shell-user-interface.c
+++ b/clients/ivi-shell-user-interface.c
@@ -37,6 +37,7 @@
 #include "../shared/os-compatibility.h"
 #include "ivi-application-client-protocol.h"
 #include "ivi-hmi-controller-client-protocol.h"
+#include "wayland-client-protocol.h"
 
 /**
  * A reference implementation how to use ivi-hmi-controller interface to
diff --git a/tests/weston-test-client-helper.h 
b/tests/weston-test-client-helper.h
index 8635471..5284b68 100644
--- a/tests/weston-test-client-helper.h
+++ b/tests/weston-test-client-helper.h
@@ -29,6 +29,7 @@
 #include <stdbool.h>
 #include "weston-test-runner.h"
 #include "weston-test-client-protocol.h"
+#include "wayland-client-protocol.h"
 
 struct client {
        struct wl_display *wl_display;
_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to