build: Use <> rather than "" for including spice-server-enums.h

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 <spice-server-enums.h> instead allows the correct
spice-server-enums.h file to be looked up.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Lukáš Hrázký <lhrazky@redhat.com>
This commit is contained in:
Christophe Fergeau 2018-08-08 12:51:59 +02:00
parent 606f747bcc
commit fcaf8d1a1c

View File

@ -24,7 +24,7 @@
#include "display-channel-private.h"
#include "red-client.h"
#include "main-channel-client.h"
#include "spice-server-enums.h"
#include <server/spice-server-enums.h>
#include "glib-compat.h"
G_DEFINE_TYPE(DisplayChannelClient, display_channel_client, TYPE_COMMON_GRAPHICS_CHANNEL_CLIENT)