From 904ea40fb709a5bb86d512e5144cb172933cc299 Mon Sep 17 00:00:00 2001 From: nico Date: Sun, 2 May 2010 12:06:58 +0000 Subject: [PATCH] [backfire] backport r21293 (closes: #6918) git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@21295 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../003-fix_memcpy_export_on_x86_64.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 target/linux/uml/patches-2.6.30/003-fix_memcpy_export_on_x86_64.patch 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 000000000..7d2efe462 --- /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