diff options
author | van Hauser <vh@thc.org> | 2019-09-13 17:05:20 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2019-09-13 17:05:20 +0200 |
commit | 4e87c6af02ce4cf71f7cd7fcdf34e8b65e29c05d (patch) | |
tree | 05945cbb38f83b52c254cd00864381c6298659ed /include/afl-fuzz.h | |
parent | 7856f097995947b76b7537cc24e39c0376fb4fa9 (diff) | |
download | afl++-4e87c6af02ce4cf71f7cd7fcdf34e8b65e29c05d.tar.gz |
for hexcoder
Diffstat (limited to 'include/afl-fuzz.h')
-rw-r--r-- | include/afl-fuzz.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h index aa879a40..ec896bdb 100644 --- a/include/afl-fuzz.h +++ b/include/afl-fuzz.h @@ -454,8 +454,31 @@ extern s32 /* Python stuff */ #ifdef USE_PYTHON +// because Python sets stuff it should not ... +#ifdef _POSIX_C_SOURCE + #define _SAVE_POSIX_C_SOURCE _POSIX_C_SOURCE + #undef _POSIX_C_SOURCE +#endif +#ifdef _XOPEN_SOURCE + #define _SAVE_XOPEN_SOURCE _XOPEN_SOURCE + #undef _XOPEN_SOURCE +#endif + #include <Python.h> +#ifdef _SAVE_POSIX_C_SOURCE + #ifdef _POSIX_C_SOURCE + #undef _POSIX_C_SOURCE + #endif + #define _POSIX_C_SOURCE _SAVE_POSIX_C_SOURCE +#endif +#ifdef _SAVE_XOPEN_SOURCE + #ifdef _XOPEN_SOURCE + #undef _XOPEN_SOURCE + #endif + #define _XOPEN_SOURCE _SAVE_XOPEN_SOURCE +#endif + extern PyObject* py_module; enum { |