From fcaf8d1a1cb31fed295de04a40382e76cb3a97b7 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Wed, 8 Aug 2018 12:51:59 +0200 Subject: [PATCH] build: Use <> rather than "" for including spice-server-enums.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When using #include "spice-server-enums.h", it will be looked up first in the directory containing the file being build, which is going to be $srcdir when dcc.c includes it. However, spice-server-enums.h is a generated file, so it will be in $builddir, not in $srcdir. This most of the time won't be causing any problems, except when you happen to have an invalid spice-server-enums.h in $srcdir and you are doing an out-of-tree build. Using #include instead allows the correct spice-server-enums.h file to be looked up. Signed-off-by: Christophe Fergeau Acked-by: Lukáš Hrázký --- server/dcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/dcc.c b/server/dcc.c index 0468e721..9498e7de 100644 --- a/server/dcc.c +++ b/server/dcc.c @@ -24,7 +24,7 @@ #include "display-channel-private.h" #include "red-client.h" #include "main-channel-client.h" -#include "spice-server-enums.h" +#include #include "glib-compat.h" G_DEFINE_TYPE(DisplayChannelClient, display_channel_client, TYPE_COMMON_GRAPHICS_CHANNEL_CLIENT)