crosstool-ng/patches/linux/2.6.32.27/100-unifdef-strclpy.patch
Alexey Neyman 7603e24b4f 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 <stilor@att.net>
2017-03-09 07:40:54 -08:00

12 lines
366 B
Diff

--- 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 <string.h>
#include <unistd.h>
-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 */