void-packages/srcpkgs/elfutils/patches/005-memcpy-def.patch

17 lines
305 B
Diff

diff --git libelf/libelf.h libelf/libelf.h
index 5a2b3af..4ead65a 100644
--- libelf/libelf.h
+++ 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