aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-07-15 14:47:28 -0400
committerJack Lloyd <[email protected]>2016-07-15 14:47:28 -0400
commitcd1e2d3bff92a2d91343541e2cf83287dce87c6f (patch)
tree034dfe0e2a7ebfc2d285fef4642d7d8c11cbe5dd /src/lib
parenta24e9a6ca4e2bc68cf8fbc82b8d72d35c7f93a71 (diff)
Fix SecRandomCopyBytes call with older OS X SDKs
In 10.8 (and presumably older) versions, the header for SecRandomCopyBytes is SecRandom.h, and Security.h does not include SecRandom.h With this change, the include of Security.h may be redundant for all versions, but I have no way to test this. GH #528
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp b/src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp
index 4f1ed87bd..0a6b85955 100644
--- a/src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp
+++ b/src/lib/entropy/darwin_secrandom/darwin_secrandom.cpp
@@ -7,6 +7,7 @@
#include <botan/internal/darwin_secrandom.h>
#include <Security/Security.h>
+#include <Security/SecRandom.h>
namespace Botan {