elfutils: fix compatibility with non-glibc builds
[openwrt-github/.git] / package / libs / elfutils / patches / 004-memcpy_def.patch
1 --- a/libelf/libelf.h
2 +++ b/libelf/libelf.h
3 @@ -35,6 +35,11 @@
4  /* Get the ELF types.  */
5  #include <elf.h>
6  
7 +#ifndef _LIBC
8 +#ifndef __mempcpy
9 +#define __mempcpy mempcpy
10 +#endif
11 +#endif
12  
13  /* Known translation types.  */
14  typedef enum