Skip to content

Commit

Permalink
fix compilation from within a macOS kernel extension
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 authored Mar 8, 2017
1 parent d8ef491 commit 4361596
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 4361596

Please sign in to comment.