]> code.ossystems Code Review - openembedded-core.git/commitdiff
lrzsz: Add implicit declaration fixes from Debian
authorAdrian Bunk <bunk@stusta.de>
Mon, 3 Jun 2019 06:57:26 +0000 (09:57 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 4 Jun 2019 08:09:33 +0000 (09:09 +0100)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--
v2: Add comment in the patch header.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-bsp/lrzsz/lrzsz-0.12.20/include.patch [new file with mode: 0644]
meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb

diff --git a/meta/recipes-bsp/lrzsz/lrzsz-0.12.20/include.patch b/meta/recipes-bsp/lrzsz/lrzsz-0.12.20/include.patch
new file mode 100644 (file)
index 0000000..5fcb3aa
--- /dev/null
@@ -0,0 +1,25 @@
+Implicit declaration compile warning fixes from Debian
+
+Signed-off-by: Adrian Bunk <bunk@stusta.de>
+Upstream-Status: Inappropriate [upstream is dead]
+
+--- lrzsz-0.12.21.orig/lib/long-options.c
++++ lrzsz-0.12.21/lib/long-options.c
+@@ -22,6 +22,7 @@
+ #endif
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <getopt.h>
+ #include "long-options.h"
+--- lrzsz-0.12.21.orig/src/lsyslog.c
++++ lrzsz-0.12.21/src/lsyslog.c
+@@ -22,6 +22,7 @@
+ #ifdef ENABLE_SYSLOG
+ #include "zglobal.h"
+ #include <pwd.h>
++#include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #endif
index 002c774c6d8f2841caf893a5f8d17d28e939ed96..34556b2c294446de9cc8f3dd84860b1964fd20e2 100644 (file)
@@ -20,6 +20,7 @@ SRC_URI = "http://www.ohse.de/uwe/releases/lrzsz-${PV}.tar.gz \
           file://lrzsz_fix_for_automake-1.12.patch \
            file://lrzsz-check-locale.h.patch \
            file://cve-2018-10195.patch \
+           file://include.patch \
            "
 
 SRC_URI[md5sum] = "b5ce6a74abc9b9eb2af94dffdfd372a4"