From 7603e24b4f0a015d5166613cb8492c156aa9ae9d Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Thu, 9 Mar 2017 07:40:54 -0800 Subject: Fix unifdef in Linux 2.6.32 on macos ... which fails to compile due to incompatible prototype for strlcpy() which isn't even used. 2.6.33 dropped the prototype, so the patch is n/a for newer kernels. Signed-off-by: Alexey Neyman diff --git a/patches/linux/2.6.32.27/100-unifdef-strclpy.patch b/patches/linux/2.6.32.27/100-unifdef-strclpy.patch new file mode 100644 index 0000000..072fac6 --- /dev/null +++ b/patches/linux/2.6.32.27/100-unifdef-strclpy.patch @@ -0,0 +1,11 @@ +--- linux-2.6.32.27/scripts/unifdef.c.orig 2017-03-08 21:42:27.000000000 -0800 ++++ linux-2.6.32.27/scripts/unifdef.c 2017-03-08 21:42:44.000000000 -0800 +@@ -72,8 +72,6 @@ + #include + #include + +-size_t strlcpy(char *dst, const char *src, size_t siz); +- + /* types of input lines: */ + typedef enum { + LT_TRUEI, /* a true #if with ignore flag */ -- cgit v0.10.2-6-g49f6