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 fe5ecc6eba
commit de45ea5775

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"