+@@ -117,4 +120,14 @@
+ /* Define for large files, on AIX-style hosts. */
+ #undef _LARGE_FILES
+
++#ifdef __ANDROID__
++# ifndef ANDROID_MEMPCPY
++# define ANDROID_MEMPCPY 1
++static __inline__ void* mempcpy(void* dest, void const* src, size_t n)
++{
++ return memcpy(dest, src, n) + n;
++}
++# endif
++#endif
++
+ #include <eu-config.h>