summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2006-02-28 08:47:40 +0000
committerFlorian Fainelli <florian@openwrt.org>2006-02-28 08:47:40 +0000
commit9456bf25d6517ed8ed8796f8cfc6b84b5947caed (patch)
treeb3180d5fc2b0077cca7ea058f7ebc428ffc7214e
parent62cb331e8ebc7fdcea9726eaf9974780cc3179d7 (diff)
downloadmtk-20170518-9456bf25d6517ed8ed8796f8cfc6b84b5947caed.zip
mtk-20170518-9456bf25d6517ed8ed8796f8cfc6b84b5947caed.tar.gz
mtk-20170518-9456bf25d6517ed8ed8796f8cfc6b84b5947caed.tar.bz2
Add memcmp symbol to kernel, closes #331
SVN-Revision: 3286
-rw-r--r--openwrt/target/linux/x86-2.4/patches/004-export_memcmp.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/openwrt/target/linux/x86-2.4/patches/004-export_memcmp.patch b/openwrt/target/linux/x86-2.4/patches/004-export_memcmp.patch
new file mode 100644
index 0000000..5c22a20
--- /dev/null
+++ b/openwrt/target/linux/x86-2.4/patches/004-export_memcmp.patch
@@ -0,0 +1,16 @@
+--- linux-2.4.32/arch/i386/kernel/i386_ksyms.c-- 2006-02-26 11:11:42.000000000 +0100
++++ linux-2.4.32/arch/i386/kernel/i386_ksyms.c 2006-02-26 11:11:45.000000000 +0100
+@@ -170,10 +170,13 @@
+
+ #undef memcpy
+ #undef memset
++#undef memcmp
+ extern void * memset(void *,int,__kernel_size_t);
+ extern void * memcpy(void *,const void *,__kernel_size_t);
++extern int memcmp(const void *, const void *);
+ EXPORT_SYMBOL_NOVERS(memcpy);
+ EXPORT_SYMBOL_NOVERS(memset);
++EXPORT_SYMBOL_NOVERS(memcmp);
+
+ #ifdef CONFIG_HAVE_DEC_LOCK
+ EXPORT_SYMBOL(atomic_dec_and_lock);