From 23c285e7ef764f9836244201fe2469bdd8983e6d Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Sat, 23 Feb 2013 09:03:29 -0500 Subject: [PATCH] Fixed patch which is broken on linux --- crypto/random/seed/AppleSecRandomCopyBytesRandomSeed.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crypto/random/seed/AppleSecRandomCopyBytesRandomSeed.c b/crypto/random/seed/AppleSecRandomCopyBytesRandomSeed.c index 19dec4597..963e6e2f2 100644 --- a/crypto/random/seed/AppleSecRandomCopyBytesRandomSeed.c +++ b/crypto/random/seed/AppleSecRandomCopyBytesRandomSeed.c @@ -15,11 +15,14 @@ #include "crypto/random/seed/AppleSecRandomCopyBytesRandomSeed.h" -#ifdef __APPLE__ -#include +#ifdef OSX + #include + #if __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_2_0) + #define HAS_SecRandomCopyBytes + #endif #endif -#if __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_2_0) +#ifdef HAS_SecRandomCopyBytes #include #include