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/SStream.c b/SStream.c index 05c2476..96fd85c 100644 --- a/SStream.c +++ b/SStream.c
@@ -3,7 +3,11 @@ #include <stdint.h> #include <stdarg.h> +#if defined(CAPSTONE_HAS_OSXKERNEL) +#include <libkern/libkern.h> +#else #include <stdio.h> +#endif #include <string.h> #include "SStream.h"