Просмотр исходного кода

trace: use local path for local headers

When pulling in headers that are in the same directory as the C file (as
opposed to one in include/), we should use its relative path, without a
directory.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Michael S. Tsirkin 7 лет назад
Родитель
Сommit
a322714248
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      trace/control.h
  2. 1 1
      trace/qmp.c

+ 1 - 1
trace/control.h

@@ -267,6 +267,6 @@ char *trace_opt_parse(const char *optarg);
 uint32_t trace_get_vcpu_event_count(void);
 uint32_t trace_get_vcpu_event_count(void);
 
 
 
 
-#include "trace/control-internal.h"
+#include "control-internal.h"
 
 
 #endif /* TRACE__CONTROL_H */
 #endif /* TRACE__CONTROL_H */

+ 1 - 1
trace/qmp.c

@@ -10,7 +10,7 @@
 #include "qemu/osdep.h"
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 #include "qapi/error.h"
 #include "qapi/qapi-commands-trace.h"
 #include "qapi/qapi-commands-trace.h"
-#include "trace/control.h"
+#include "control.h"
 
 
 
 
 static CPUState *get_cpu(bool has_vcpu, int vcpu, Error **errp)
 static CPUState *get_cpu(bool has_vcpu, int vcpu, Error **errp)