Skip to content

Commit

Permalink
fix capstone include paths
Browse files Browse the repository at this point in the history
capstone include paths were adjusted in
2b8104b, and this wasn't picked up in
the "PPC uplifting" commit, leading to a build failure with system
capstone.

Also fix the path of the ppc.h include, which seems to mistakenly use
capstone's ppc.h when building with bundled capstone.

Fixes: b46e7bd ("PPC uplifting to RzIL (rizinorg#2823)")
Signed-off-by: John Helmert III <ajak@gentoo.org>
  • Loading branch information
ajakk committed Feb 19, 2023
1 parent b2a3c56 commit 7518230
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion librz/analysis/arch/ppc/ppc_il.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <rz_analysis.h>
#include <rz_il.h>
#include <rz_types.h>
#include <capstone.h>
#include <capstone/capstone.h>

#define PPC_BYTE 8
#define PPC_HWORD 16
Expand Down
4 changes: 2 additions & 2 deletions librz/analysis/arch/ppc/ppc_il_ops.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// SPDX-FileCopyrightText: 2022 Rot127 <unisono@quyllur.org>
// SPDX-License-Identifier: LGPL-3.0-only

#include "ppc.h"
#include "opcode/ppc.h"
#include "ppc_il.h"
#include "ppc_analysis.h"
#include "rz_types_base.h"
#include <rz_il/rz_il_opcodes.h>
#include <rz_util/rz_assert.h>
#include <capstone.h>
#include <capstone/capstone.h>
#include <rz_il/rz_il_opbuilder_begin.h>

static RzILOpEffect *load_op(RZ_BORROW csh handle, RZ_BORROW cs_insn *insn, const cs_mode mode) {
Expand Down

0 comments on commit 7518230

Please sign in to comment.