target/uml: fix memcpy export on x86_64 with gcc < 4.3 (closes: #6918)
[openwrt/staging/florian.git] / target / linux / uml / patches-2.6.32 / 003-fix_memcpy_export_on_x86_64.patch
1 --- a/arch/um/os-Linux/user_syms.c
2 +++ b/arch/um/os-Linux/user_syms.c
3 @@ -23,7 +23,7 @@ extern int printf(const char *, ...);
4 EXPORT_SYMBOL(strstr);
5 #endif
6
7 -#ifndef __x86_64__
8 +#if !defined(__x86_64) || (__GNUC__ == 4 && __GNUC_MINOR__ < 3) || (__GNUC__ < 4)
9 extern void *memcpy(void *, const void *, size_t);
10 EXPORT_SYMBOL(memcpy);
11 #endif