summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-04 23:10:17 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-04 23:10:17 (GMT)
commit5e4627c2826432de231763f0854db9205ab08612 (patch)
tree489b2e4792695bbcec41cbf7283d8901cee074f2 /random.c
parent52a23d56adc628311967b11b1c929bd3e1cc38d7 (diff)
random.c: fix up r64596
* random.c (fill_random_bytes_syscall): check if the version macro is defined, for very old Mac OS X development tools. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.c b/random.c
index 9579cfc..14588c7 100644
--- a/random.c
+++ b/random.c
@@ -470,7 +470,7 @@ fill_random_bytes_urandom(void *seed, size_t size)
#endif
#if 0
-#elif defined __APPLE__ && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7
+#elif defined MAC_OS_X_VERSION_10_7 && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7
#include <Security/Security.h>
static int