From 4361596b92b4117652254ce9ced361fadd8de3b9 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Wed, 8 Mar 2017 14:40:22 +0300 Subject: [PATCH] fix compilation from within a macOS kernel extension --- utils.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils.h b/utils.h index 60ed8221d3..e9ab70cf85 100644 --- a/utils.h +++ b/utils.h @@ -4,7 +4,11 @@ #ifndef CS_UTILS_H #define CS_UTILS_H +#if defined(CAPSTONE_HAS_OSXKERNEL) +#include +#else #include +#endif #include "include/capstone.h" #include "cs_priv.h"