1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 03:01:09 +02:00

target/uml: fix memcpy export on x86_64 with gcc < 4.3 (closes: #6918)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21293 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2010-05-02 04:20:03 +00:00
parent 30b7038da5
commit d839abc71e
2 changed files with 22 additions and 0 deletions

View File

@ -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

View File

@ -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