From a94d35c7dc345758fd9f6590c42880303ad4eee7 Mon Sep 17 00:00:00 2001 From: Like Ma Date: Tue, 3 Mar 2015 15:07:16 +0800 Subject: [PATCH] Fix building error by GCC 4.5.4 in AIX 5.1 GCC reported undefined mmap without _AIX macro. --- src/crypto_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto_impl.c b/src/crypto_impl.c index 9a77e0f..bfd170e 100644 --- a/src/crypto_impl.c +++ b/src/crypto_impl.c @@ -36,7 +36,7 @@ #include "sqlcipher.h" #include "crypto.h" #ifndef OMIT_MEMLOCK -#if defined(__unix__) || defined(__APPLE__) +#if defined(__unix__) || defined(__APPLE__) || defined(_AIX) #include #elif defined(_WIN32) # include