summaryrefslogtreecommitdiff
path: root/app-emulation/qemu/files/qemu-9.2.0-capstone-include-path.patch
blob: 8cb557b59bce149269fd96cedb1af0a9325999de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From: Sam James <sam@gentoo.org>
Date: Sun, 6 Oct 2024 09:47:03 +0100
Subject: [PATCH] Forward ported from qemu-7.1.0-capstone-include-path.patch.

Bug: https://bugs.gentoo.org/873157
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
---
 include/disas/capstone.h | 2 +-
 meson.build              | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/disas/capstone.h b/include/disas/capstone.h
index c43033f7f6..02bc067cd8 100644
--- a/include/disas/capstone.h
+++ b/include/disas/capstone.h
@@ -5,7 +5,7 @@
 
 #define CAPSTONE_AARCH64_COMPAT_HEADER
 #define CAPSTONE_SYSTEMZ_COMPAT_HEADER
-#include <capstone.h>
+#include <capstone/capstone.h>
 
 #else
 
diff --git a/meson.build b/meson.build
index 2c924f8f10..86858a325b 100644
--- a/meson.build
+++ b/meson.build
@@ -1892,7 +1892,7 @@ if not get_option('capstone').auto() or have_system or have_user
   # that reports a wrong -I path, causing the #include to
   # fail later. If the system has such a broken version
   # do not use it.
-  if capstone.found() and not cc.compiles('#include <capstone.h>',
+  if capstone.found() and not cc.compiles('#include <capstone/capstone.h>',
                                           dependencies: [capstone])
     capstone = not_found
     if get_option('capstone').enabled()
-- 
2.45.2