[Spice-commits] server/dcc.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Aug 8 15:03:14 UTC 2018


 server/dcc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit fcaf8d1a1cb31fed295de04a40382e76cb3a97b7
Author: Christophe Fergeau <cfergeau at redhat.com>
Date:   Wed Aug 8 12:51:59 2018 +0200

    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 at redhat.com>
    Acked-by: Lukáš Hrázký <lhrazky at redhat.com>

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 <server/spice-server-enums.h>
 #include "glib-compat.h"
 
 G_DEFINE_TYPE(DisplayChannelClient, display_channel_client, TYPE_COMMON_GRAPHICS_CHANNEL_CLIENT)


More information about the Spice-commits mailing list