Files
LibreELEC.tv/packages/devel/elfutils/patches/bk/elfutils-03-memcpy-def.patch
Stephan Raue 87c051620d elfutils: build for target, fix build
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-03-05 19:02:01 +01:00

25 lines
598 B
Diff

Provide a compatibility alias __memcpy
For some reason, libelf uses the internal glibc alias __memcpy, which
doesn't exist in uClibc. Add a manual alias so that the build can
proceed with uClibc.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Index: b/libelf/libelf.h
===================================================================
--- a/libelf/libelf.h
+++ b/libelf/libelf.h
@@ -34,6 +34,11 @@
/* Get the ELF types. */
#include <elf.h>
+#ifndef _LIBC
+#ifndef __mempcpy
+#define __mempcpy mempcpy
+#endif
+#endif
/* Known translation types. */
typedef enum