summaryrefslogtreecommitdiff
path: root/target/linux/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2018-05-27 17:52:54 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2018-05-27 17:53:11 +0200
commit382138104b46883071f867670445cd47bba2a897 (patch)
treef1487bd401256cc1e5cc48b9588ed9d3b3056fd1 /target/linux/patches
parent3c20c1881145b38d11b48907ef1b327490a77eed (diff)
linux: allow to compile old kernel with clang
Diffstat (limited to 'target/linux/patches')
-rw-r--r--target/linux/patches/2.6.32.70/clang.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/patches/2.6.32.70/clang.patch b/target/linux/patches/2.6.32.70/clang.patch
new file mode 100644
index 000000000..cd3fd7079
--- /dev/null
+++ b/target/linux/patches/2.6.32.70/clang.patch
@@ -0,0 +1,12 @@
+diff -Nur linux-2.6.32.70.orig/scripts/unifdef.c linux-2.6.32.70/scripts/unifdef.c
+--- linux-2.6.32.70.orig/scripts/unifdef.c 2016-01-29 22:13:00.000000000 +0100
++++ linux-2.6.32.70/scripts/unifdef.c 2018-05-27 15:16:42.000000000 +0200
+@@ -72,7 +72,7 @@
+ #include <string.h>
+ #include <unistd.h>
+
+-size_t strlcpy(char *dst, const char *src, size_t siz);
++//size_t strlcpy(char *dst, const char *src, size_t siz);
+
+ /* types of input lines: */
+ typedef enum {