Skip to content
Browse files

Disable AppleSecRandomCopyBytesRandomSeed in OSX 10.6. Fix #199

  • Loading branch information...
1 parent d27739e commit def6e9d4d2c1bde0dbd8ee5dea30cee11e2c6369 @clehner clehner committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 crypto/random/seed/AppleSecRandomCopyBytesRandomSeed.c
View
6 crypto/random/seed/AppleSecRandomCopyBytesRandomSeed.c
@@ -15,7 +15,11 @@
#include "crypto/random/seed/AppleSecRandomCopyBytesRandomSeed.h"
-#ifdef OSX
+#ifdef __APPLE__
+#include <Availability.h>
+#endif
+
+#if __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_2_0)
#include <Security/SecRandom.h>
#include <inttypes.h>

0 comments on commit def6e9d

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