fix speculative usage of <sys/shm.h> in AFL runtime (#1278)
parent
837ecff306
commit
27a7226a19
3
Changes
3
Changes
|
@ -264,6 +264,9 @@ Working version
|
|||
- GPR#1275: correct configure test for Spacetime availability
|
||||
(Mark Shinwell)
|
||||
|
||||
- GPR#1278: discover presence of <sys/shm.h> during configure for afl runtime
|
||||
(Hannes Mehnert)
|
||||
|
||||
### Internal/compiler-libs changes:
|
||||
|
||||
- MPR#6826, GPR#828, GPR#834: improve compilation time for open
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue