ui: fix path to dbus-display1.h

While the source directory is always included in the include path,
the corresponding directory in the build tree is not.  Therefore,
custom_targets (e.g. ui/dbus-display1.h) must be referred to using
the full path.

This avoids a build failure when ui/dbus-chardev.c is not built as
a module:

In file included from ../ui/dbus-chardev.c:32:
../ui/dbus.h:34:10: fatal error: dbus-display1.h: No such file or directory
   34 | #include "dbus-display1.h"
      |          ^~~~~~~~~~~~~~~~~

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2022-07-27 12:19:03 +02:00
parent 5433af7697
commit 0e902f59c1
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
#include <gio/gio.h> #include <gio/gio.h>
#include <gio/gunixfdlist.h> #include <gio/gunixfdlist.h>
#include "libqtest.h" #include "libqtest.h"
#include "dbus-display1.h" #include "ui/dbus-display1.h"
static GDBusConnection* static GDBusConnection*
test_dbus_p2p_from_fd(int fd) test_dbus_p2p_from_fd(int fd)

View File

@ -31,7 +31,7 @@
#include "ui/console.h" #include "ui/console.h"
#include "ui/clipboard.h" #include "ui/clipboard.h"
#include "dbus-display1.h" #include "ui/dbus-display1.h"
typedef struct DBusClipboardRequest { typedef struct DBusClipboardRequest {
GDBusMethodInvocation *invocation; GDBusMethodInvocation *invocation;