diff --git a/random.c b/random.c index 013e9f66e3..f8879cfb88 100644 --- a/random.c +++ b/random.c @@ -487,14 +487,18 @@ fill_random_bytes_urandom(void *seed, size_t size) #if 0 #elif defined MAC_OS_X_VERSION_10_7 && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 -# if defined MAC_OS_X_VERSION_10_10 && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_10 -# include /* for old Xcode */ -# include +# if defined(USE_COMMON_RANDOM) +# elif defined MAC_OS_X_VERSION_10_10 && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_10 # define USE_COMMON_RANDOM 1 # else -# include # define USE_COMMON_RANDOM 0 # endif +# if USE_COMMON_RANDOM +# include /* for old Xcode */ +# include +# else +# include +# endif static int fill_random_bytes_syscall(void *seed, size_t size, int unused)