preload-hacks: Some patches to make it work.
[termux-packages] / packages / elfutils / config.h.in.patch
index 6d833c8..f9cc61f 100644 (file)
@@ -1,6 +1,6 @@
-diff -u -r ../elfutils-0.166/config.h.in ./config.h.in
---- ../elfutils-0.166/config.h.in      2016-03-31 04:59:09.000000000 -0400
-+++ ./config.h.in      2016-05-04 13:36:44.002345307 -0400
+diff -u -r ../elfutils-0.168/config.h.in ./config.h.in
+--- ../elfutils-0.168/config.h.in      2016-12-28 10:33:20.000000000 +0100
++++ ./config.h.in      2017-07-09 23:32:21.305290105 +0200
 @@ -1,4 +1,7 @@
  /* config.h.in.  Generated from configure.ac by autoheader.  */
 +#include <libgen.h> /* for basename(3) */
@@ -9,3 +9,18 @@ diff -u -r ../elfutils-0.166/config.h.in ./config.h.in
  
  /* Building with -fsanitize=undefined or not */
  #undef CHECK_UNDEFINED
+@@ -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>