aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/x86-2.4
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
commitd409bb3b2a8ca9fd55ebd6fb55cfab186fd75a8e (patch)
tree0d5c8c38498814440f8f537a94b1197345b7281a /target/linux/x86-2.4
parent8408c72ba41d0a2f575fea508e151bb5d772d30f (diff)
downloadupstream-d409bb3b2a8ca9fd55ebd6fb55cfab186fd75a8e.tar.gz
upstream-d409bb3b2a8ca9fd55ebd6fb55cfab186fd75a8e.tar.bz2
upstream-d409bb3b2a8ca9fd55ebd6fb55cfab186fd75a8e.zip
Add memcmp symbol to kernel, closes #331
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3286 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/x86-2.4')
-rw-r--r--target/linux/x86-2.4/patches/004-export_memcmp.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/x86-2.4/patches/004-export_memcmp.patch b/target/linux/x86-2.4/patches/004-export_memcmp.patch
new file mode 100644
index 0000000000..5c22a204c8
--- /dev/null
+++ b/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);