From 3c6b4ae867802ca050ed904ad80be8bffe40b1c3 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Tue, 15 Mar 2016 12:36:33 +0100 Subject: build-sys: fix 'Only can be included directly' warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tests should be allowed to include directly private headers. Set __SPICE_CLIENT_H_INSIDE__ where necessary or include spice-client.h where possible. Signed-off-by: Marc-André Lureau Acked-by: Fabiano Fidêncio --- tests/session.c | 4 +--- tests/util.c | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/session.c b/tests/session.c index feee3db..d065b60 100644 --- a/tests/session.c +++ b/tests/session.c @@ -1,6 +1,4 @@ -#include - -#include "spice-session.h" +#include static void test_session_uri(void) { diff --git a/tests/util.c b/tests/util.c index b9b9535..dcc9770 100644 --- a/tests/util.c +++ b/tests/util.c @@ -3,6 +3,7 @@ #include #include +#define __SPICE_CLIENT_H_INSIDE__ #include "spice-util-priv.h" enum { -- cgit v1.2.3