Only define PAGE_SIZE if not already defined.
authorBen Laurie <ben@links.org>
Fri, 31 Jul 2015 08:49:20 +0000 (09:49 +0100)
committerBen Laurie <ben@links.org>
Fri, 31 Jul 2015 19:50:07 +0000 (20:50 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/sec_mem.c

index 5bf8baace1d1ceb96bf271205cfddae4a7334b7c..a630cbc82e092daa4801323651093fdba3fce9ed 100644 (file)
@@ -26,7 +26,9 @@
 #define LOCK()      CRYPTO_w_lock(CRYPTO_LOCK_MALLOC)
 #define UNLOCK()    CRYPTO_w_unlock(CRYPTO_LOCK_MALLOC)
 #define CLEAR(p, s) OPENSSL_cleanse(p, s)
-#define PAGE_SIZE    4096
+#ifndef PAGE_SIZE
+# define PAGE_SIZE    4096
+#endif
 
 #ifdef IMPLEMENTED
 size_t secure_mem_used;