commit | 160e1985849e80c079f6f8c8b157b6debd4dd95f | [log] [tgz] |
---|---|---|
author | reverser <fg@put.as> | Thu Apr 09 18:28:19 2015 +0100 |
committer | reverser <fg@put.as> | Thu Apr 09 18:28:19 2015 +0100 |
tree | 5e1ba4f150aec09d71564b3ab21d3a6323583d2f | |
parent | fa17d871f1fd6487604774945e04addbfb61a569 [diff] [blame] |
Add support to embed Capstone 3.x branch into OS X kernel extensions.
diff --git a/MCInst.c b/MCInst.c index 2991c71..17cbcf2 100644 --- a/MCInst.c +++ b/MCInst.c
@@ -1,8 +1,12 @@ /* Capstone Disassembly Engine */ /* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */ +#if defined(CAPSTONE_HAS_OSXKERNEL) +#include <libkern/libkern.h> +#else #include <stdio.h> #include <stdlib.h> +#endif #include <string.h> #include "MCInst.h"