From de45ea57751584f5ad61681a02db117b1f67cfdb 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 60ed8221d..e9ab70cf8 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"