target/disassembler: update capstone include path to <capstone.h>
authorfatalc <cnfatal@gmail.com>
Mon, 25 Apr 2022 04:06:10 +0000 (12:06 +0800)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 30 Apr 2022 17:53:30 +0000 (17:53 +0000)
on macos (homebrew base) `pkg-config --cflags capstone` output with
`-I/opt/homebrew/Cellar/capstone/4.0.2/include/capstone`
gcc not find headers on parent "include" path,
causes build error `fatal error: 'capstone/capstone.h' file not found`
it's ok to change to <capstone.h> for all platforms.

Signed-off-by: fatalc <cnfatal@gmail.com>
Change-Id: Ia2e2058024d4fc1a57a8b4ea847c664d74f67efb
Reviewed-on: https://review.openocd.org/c/openocd/+/6946
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/target/a64_disassembler.c
src/target/arm_disassembler.c

index bd78129dd66c404468f2c458c0a729f48100ff3a..58ddf603eced4ea76c8681d5b328820aff7a1d0c 100644 (file)
@@ -26,7 +26,7 @@
 
 #if HAVE_CAPSTONE
 
-#include <capstone/capstone.h>
+#include <capstone.h>
 
 static void print_opcode(struct command_invocation *cmd, const cs_insn *insn)
 {
index 6618593798b49bc5adc7008c75b0137aa19ee75c..d3d27a93c888204c17bf2c29cba09ad6efa37f20 100644 (file)
@@ -27,7 +27,7 @@
 #include <helper/log.h>
 
 #if HAVE_CAPSTONE
-#include <capstone/capstone.h>
+#include <capstone.h>
 #endif
 
 /*