fix compilation from within a macOS kernel extension

This commit is contained in:
vit9696
2017-03-08 14:40:22 +03:00
committed by GitHub
parent d8ef4914d7
commit 4361596b92

View File

@ -4,7 +4,11 @@
#ifndef CS_UTILS_H
#define CS_UTILS_H
#if defined(CAPSTONE_HAS_OSXKERNEL)
#include <libkern/libkern.h>
#else
#include <stddef.h>
#endif
#include "include/capstone.h"
#include "cs_priv.h"