summaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.10/062-mips_decompressor_memcpy_memset_redefinition.patch
blob: 4a9a714fb485973e21d557afdd90865c97d56ce0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/arch/mips/boot/compressed/decompress.c
+++ b/arch/mips/boot/compressed/decompress.c
@@ -45,6 +45,7 @@ void error(char *x)
 #define STATIC static
 
 #ifdef CONFIG_KERNEL_GZIP
+#undef memcpy
 void *memcpy(void *dest, const void *src, size_t n)
 {
 	int i;
@@ -59,6 +60,7 @@ void *memcpy(void *dest, const void *src
 #endif
 
 #ifdef CONFIG_KERNEL_BZIP2
+#undef memset
 void *memset(void *s, int c, size_t n)
 {
 	int i;