Add memcmp symbol to kernel, closes #331
[openwrt/svn-archive/archive.git] / openwrt / target / linux / x86-2.4 / patches / 004-export_memcmp.patch
1 --- linux-2.4.32/arch/i386/kernel/i386_ksyms.c-- 2006-02-26 11:11:42.000000000 +0100
2 +++ linux-2.4.32/arch/i386/kernel/i386_ksyms.c 2006-02-26 11:11:45.000000000 +0100
3 @@ -170,10 +170,13 @@
4
5 #undef memcpy
6 #undef memset
7 +#undef memcmp
8 extern void * memset(void *,int,__kernel_size_t);
9 extern void * memcpy(void *,const void *,__kernel_size_t);
10 +extern int memcmp(const void *, const void *);
11 EXPORT_SYMBOL_NOVERS(memcpy);
12 EXPORT_SYMBOL_NOVERS(memset);
13 +EXPORT_SYMBOL_NOVERS(memcmp);
14
15 #ifdef CONFIG_HAVE_DEC_LOCK
16 EXPORT_SYMBOL(atomic_dec_and_lock);