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

SVN-Revision: 21293
master
Nicolas Thill 15 years ago
parent 489c2adad3
commit a1ae374e1d
  1. 11
      target/linux/uml/patches-2.6.30/003-fix_memcpy_export_on_x86_64.patch
  2. 11
      target/linux/uml/patches-2.6.32/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

@ -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
Loading…
Cancel
Save