--- a/libelf/libelf.h
+++ b/libelf/libelf.h
-@@ -35,6 +35,11 @@
- /* Get the ELF types. */
- #include <elf.h>
+@@ -108,6 +108,11 @@ typedef struct
+ size_t d_align; /* Alignment in section. */
+ } Elf_Data;
+#ifndef _LIBC
+#ifndef __mempcpy
+#endif
+#endif
- /* Known translation types. */
+ /* Commands for `...'. */
typedef enum