From e7e1296682b550349832d8922d688014dae7f968 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Thu, 5 Jul 2012 16:31:29 +1200 Subject: [PATCH] scanner: Include weston-client.h as the inline functions require it --- src/scanner.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scanner.c b/src/scanner.c index 0076d923..50e26c1c 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -868,11 +868,12 @@ emit_header(struct protocol *protocol, int server) "\n" "#include \n" "#include \n" - "#include \"wayland-util.h\"\n\n" + "#include \"%s\"\n\n" "struct wl_client;\n" "struct wl_resource;\n\n", protocol->uppercase_name, s, - protocol->uppercase_name, s); + protocol->uppercase_name, s, + server ? "wayland-util.h" : "wayland-client.h"); wl_list_for_each(i, &protocol->interface_list, link) printf("struct %s;\n", i->name);