Skip to content

Commit

Permalink
Fixed patch which is broken on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb James DeLisle committed Feb 23, 2013
1 parent 464dfed commit 23c285e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crypto/random/seed/AppleSecRandomCopyBytesRandomSeed.c
Expand Up @@ -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>

Expand Down

0 comments on commit 23c285e

Please sign in to comment.