summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2017-02-26 03:23:51 +0100
committerMarco d'Itri <md@linux.it>2017-02-26 03:23:51 +0100
commitb1cf371706fbc90bc54817c1103d89f6505efaa7 (patch)
tree0bc7eff1ad891a78fa253d9c6483fff8f86680e3 /config.h
parentdf1c963a3e02361221b89d85f8a01e4b775ff4d4 (diff)
downloadwhois-b1cf371706fbc90bc54817c1103d89f6505efaa7.tar.gz
Do not use arc4random_buf on OS X v10.6 or erlier
Because it had not been implemented yet. Patch from MacPorts.
Diffstat (limited to 'config.h')
-rw-r--r--config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.h b/config.h
index 7e324f7..ee75c49 100644
--- a/config.h
+++ b/config.h
@@ -85,7 +85,7 @@
#if (defined __FreeBSD__ && __FreeBSD__ >= 9) || \
(defined __NetBSD__ && __NetBSD_Version__ >= 600000000) || \
(defined OpenBSD && OpenBSD >= 200805) || \
- (defined __APPLE__ && defined __MACH__)
+ (defined __APPLE__ && defined __MACH__ && MAC_OS_X_VERSION_MIN_REQUIRED >= 1070)
# define HAVE_ARC4RANDOM_BUF
# undef RANDOM_DEVICE
#endif