about summary refs log tree commit diff
path: root/include/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h7
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 */