From: Nicolas Thill Date: Sun, 2 May 2010 12:06:58 +0000 (+0000) Subject: backport r21293 (closes: #6918) X-Git-Tag: backfire_10.03.1~788 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=862ea1909572f2ea1ddfdb4e674b32b793437c88;p=openwrt%2Fsvn-archive%2Fopenwrt.git backport r21293 (closes: #6918) SVN-Revision: 21295 --- diff --git a/target/linux/uml/patches-2.6.30/003-fix_memcpy_export_on_x86_64.patch b/target/linux/uml/patches-2.6.30/003-fix_memcpy_export_on_x86_64.patch new file mode 100644 index 0000000000..7d2efe4622 --- /dev/null +++ b/target/linux/uml/patches-2.6.30/003-fix_memcpy_export_on_x86_64.patch @@ -0,0 +1,11 @@ +--- a/arch/um/os-Linux/user_syms.c ++++ b/arch/um/os-Linux/user_syms.c +@@ -23,7 +23,7 @@ extern int printf(const char *, ...); + EXPORT_SYMBOL(strstr); + #endif + +-#ifndef __x86_64__ ++#if !defined(__x86_64) || (__GNUC__ == 4 && __GNUC_MINOR__ < 3) || (__GNUC__ < 4) + extern void *memcpy(void *, const void *, size_t); + EXPORT_SYMBOL(memcpy); + #endif