The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / elfutils / 0006-memcpy-def.patch
1 Provide a compatibility alias __memcpy
2
3 For some reason, libelf uses the internal glibc alias __memcpy, which
4 doesn't exist in uClibc. Add a manual alias so that the build can
5 proceed with uClibc.
6
7 Based on the former patch by Thomas Petazzoni.
8
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
11
12 diff -rup a/libelf/libelf.h b/libelf/libelf.h
13 --- a/libelf/libelf.h   2014-08-27 10:25:17.000000000 +0100
14 +++ b/libelf/libelf.h   2014-11-07 15:13:08.743508221 +0000
15 @@ -34,6 +34,11 @@
16  /* Get the ELF types.  */
17  #include <elf.h>
18
19 +#ifndef _LIBC
20 +#ifndef __mempcpy
21 +#define __mempcpy mempcpy
22 +#endif
23 +#endif
24
25  /* Known translation types.  */
26  typedef enum