target/disassembler: update capstone include path to <capstone.h>

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>
This commit is contained in:
fatalc 2022-04-25 12:06:10 +08:00 committed by Antonio Borneo
parent 8789513fa9
commit 12d1ad0c75
2 changed files with 2 additions and 2 deletions

View 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)
{

View File

@ -27,7 +27,7 @@
#include <helper/log.h>
#if HAVE_CAPSTONE
#include <capstone/capstone.h>
#include <capstone.h>
#endif
/*