summaryrefslogtreecommitdiff
path: root/osrng.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2002-10-04 21:45:04 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2002-10-04 21:45:04 +0000
commit518ee466c969f557a66461999fce39c3d3eea352 (patch)
treec3b417a0a51764f1ed646b44928f4c34005368ea /osrng.cpp
parentb21162cf8e06f40baa1f58be6a8c17435cebc34d (diff)
downloadcryptopp-518ee466c969f557a66461999fce39c3d3eea352.tar.gz
compatibility fixes for MacOS X
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@6 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'osrng.cpp')
-rw-r--r--osrng.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/osrng.cpp b/osrng.cpp
index 9f45b86..57f92e7 100644
--- a/osrng.cpp
+++ b/osrng.cpp
@@ -15,7 +15,9 @@
#endif
#include <windows.h>
#include <wincrypt.h>
-#else
+#endif
+
+#ifdef CRYPTOPP_UNIX_AVAILABLE
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>