From: Howard Chu Date: Thu, 25 Sep 2014 18:25:56 +0000 (+0100) Subject: Android also only has memalign X-Git-Tag: LMDB_0.9.15~66 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a7639a66a493818dc55f3ed77bebe659b6cdd2fd;p=openldap Android also only has memalign --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 6cc343326e..60dfd8db3e 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -90,7 +90,7 @@ extern int cacheflush(char *addr, int nbytes, int cache); #include #include -#if defined(__sun) +#if defined(__sun) || defined(ANDROID) /* Most platforms have posix_memalign, older may only have memalign */ #define HAVE_MEMALIGN 1 #include