summaryrefslogtreecommitdiff
path: root/misc.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-07-24 06:12:23 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-07-24 06:12:23 +0000
commite66a4497451a7c2920d1a68d38b5dfc5f376954f (patch)
tree7459b302c10303edf56066f79da7157d7fd127f6 /misc.cpp
parent8532f317b3440154b421b1e8b8b004ead28f847e (diff)
downloadcryptopp-e66a4497451a7c2920d1a68d38b5dfc5f376954f.tar.gz
fix compile on Linux
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@509 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'misc.cpp')
-rw-r--r--misc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc.cpp b/misc.cpp
index f16af66..3c2c2a5 100644
--- a/misc.cpp
+++ b/misc.cpp
@@ -8,6 +8,10 @@
#include "words.h"
#include <new>
+#if defined(CRYPTOPP_MEMALIGN_AVAILABLE) || defined(CRYPTOPP_MM_MALLOC_AVAILABLE) || defined(QNX)
+#include <malloc.h>
+#endif
+
NAMESPACE_BEGIN(CryptoPP)
void xorbuf(byte *buf, const byte *mask, size_t count)