diff options
author | van Hauser <vh@thc.org> | 2019-09-05 11:23:10 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2019-09-05 11:23:10 +0200 |
commit | efa205289662db40382f9c2a4e83420438419bba (patch) | |
tree | 752b9cbeb144d5c888cb7fdad51b0a2e954bd0ae /include/config.h | |
parent | 52cbd650b7ae30c64152601fbc34350d61b3e02a (diff) | |
download | afl++-efa205289662db40382f9c2a4e83420438419bba.tar.gz |
fix BSD patch
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 1fd478c6..98eb0a38 100644 --- a/include/config.h +++ b/include/config.h @@ -371,5 +371,12 @@ // #define IGNORE_FINDS +/* for *BSD: use ARC4RANDOM and save a file descriptor */ +#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) + #ifndef HAVE_ARC4RANDOM + #define HAVE_ARC4RANDOM 1 + #endif +#endif /* __APPLE__ || __FreeBSD__ || __OpenBSD__ */ + #endif /* ! _HAVE_CONFIG_H */ |