From 797192ea6002ec6fa83c9970325b9322f733948b Mon Sep 17 00:00:00 2001 From: weidai Date: Sat, 24 Jul 2010 06:12:23 +0000 Subject: [PATCH] fix compile on Linux --- misc.cpp | 4 ++++ rijndael.cpp | 1 + secblock.h | 4 ---- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/misc.cpp b/misc.cpp index f16af667..3c2c2a5f 100644 --- a/misc.cpp +++ b/misc.cpp @@ -8,6 +8,10 @@ #include "words.h" #include +#if defined(CRYPTOPP_MEMALIGN_AVAILABLE) || defined(CRYPTOPP_MM_MALLOC_AVAILABLE) || defined(QNX) +#include +#endif + NAMESPACE_BEGIN(CryptoPP) void xorbuf(byte *buf, const byte *mask, size_t count) diff --git a/rijndael.cpp b/rijndael.cpp index fbc7dccb..9a779024 100644 --- a/rijndael.cpp +++ b/rijndael.cpp @@ -74,6 +74,7 @@ being unloaded from L1 cache, until that round is finished. #include "cpu.h" #if CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE +#include #include #endif diff --git a/secblock.h b/secblock.h index ecb397fb..24b9fc09 100644 --- a/secblock.h +++ b/secblock.h @@ -7,10 +7,6 @@ #include "misc.h" #include -#if defined(CRYPTOPP_MEMALIGN_AVAILABLE) || defined(CRYPTOPP_MM_MALLOC_AVAILABLE) || defined(QNX) - #include -#endif - NAMESPACE_BEGIN(CryptoPP) // ************** secure memory allocation ***************