]> git.sur5r.net Git - openldap/blobdiff - libraries/liblmdb/mdb.c
Android also only has memalign
[openldap] / libraries / liblmdb / mdb.c
index 6cc343326efeb8543db073671e92625723daf938..60dfd8db3e92af0878993656f56f09ca49f5da59 100644 (file)
@@ -90,7 +90,7 @@ extern int cacheflush(char *addr, int nbytes, int cache);
 #include <time.h>
 #include <unistd.h>
 
-#if defined(__sun)
+#if defined(__sun) || defined(ANDROID)
 /* Most platforms have posix_memalign, older may only have memalign */
 #define HAVE_MEMALIGN  1
 #include <malloc.h>