diff options
| author | Hannes Mehnert <hannes@mehnert.org> | 2017-08-09 14:59:05 +0100 |
|---|---|---|
| committer | Mark Shinwell <mshinwell@gmail.com> | 2017-08-09 14:59:05 +0100 |
| commit | 27a7226a19a15e6b3f30c730077101d59cf32ac6 (patch) | |
| tree | a4897fc38c9ae89d5bf574b90b9acad98513f7ab /byterun | |
| parent | 837ecff306a7fcec03a86b975161fc812bd2e5cc (diff) | |
| download | ocaml-27a7226a19a15e6b3f30c730077101d59cf32ac6.tar.gz | |
fix speculative usage of <sys/shm.h> in AFL runtime (#1278)
Diffstat (limited to 'byterun')
| -rw-r--r-- | byterun/afl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/byterun/afl.c b/byterun/afl.c index bd87ce8d8a..324a3c34ab 100644 --- a/byterun/afl.c +++ b/byterun/afl.c @@ -13,9 +13,9 @@ /**************************************************************************/ /* Runtime support for afl-fuzz */ +#include "caml/config.h" -/* Android's libc does not implement System V shared memory. */ -#if defined(_WIN32) || defined(__ANDROID__) +#if !defined(HAS_SYS_SHM_H) #include "caml/mlvalues.h" @@ -159,4 +159,4 @@ CAMLprim value caml_reset_afl_instrumentation(value full) return Val_unit; } -#endif /* _WIN32 */ +#endif /* HAS_SYS_SHM_H */ |
