Skip to content
Browse files

Fixed patch which is broken on linux

  • Loading branch information...
1 parent 464dfed commit 23c285e7ef764f9836244201fe2469bdd8983e6d Caleb James DeLisle committed Feb 23, 2013
Showing with 6 additions and 3 deletions.
  1. +6 −3 crypto/random/seed/AppleSecRandomCopyBytesRandomSeed.c
View
9 crypto/random/seed/AppleSecRandomCopyBytesRandomSeed.c
@@ -15,11 +15,14 @@
#include "crypto/random/seed/AppleSecRandomCopyBytesRandomSeed.h"
-#ifdef __APPLE__
-#include <Availability.h>
+#ifdef OSX
+ #include <Availability.h>
+ #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 <Security/SecRandom.h>
#include <inttypes.h>

0 comments on commit 23c285e

Please sign in to comment.
Something went wrong with that request. Please try again.