mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 12:44:10 -09:00
Import upstream pull request https://github.com/UweOhse/lrzsz/pull/8 to fix GCC 15.x build issues. This pull request also replaces our patch 0002, which is dropped by this commit. Fixes: https://autobuild.buildroot.net/results/a1a5aad2ccc69aeff586d7a83620f10d51ccfdb6/ Signed-off-by: Frank Chung <uuidxx@163.com> [Thomas: - Added two more backports needed to fix the build - Used the actual patch submitted in the pull request, rendering our 0002 patch useless - Defined ac_cv_type_signal as a workaround to a configure script issue] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
124 lines
2.9 KiB
Diff
124 lines
2.9 KiB
Diff
From b526a62d5992d838ee34fb992defdeb8ee0ed594 Mon Sep 17 00:00:00 2001
|
|
From: Wolfram Sang <wsa+renesas@sang-engineering.com>
|
|
Date: Fri, 29 Nov 2024 14:14:25 +0100
|
|
Subject: [PATCH] FTBFS fix missing includes
|
|
|
|
Taken from: https://sources.debian.org/data/main/l/lrzsz/0.12.21rc-0.1/debian/patches/include.diff
|
|
|
|
Description: Fixes FTBFS (missing includes)
|
|
Author: Martin A. Godisch <godisch@debian.org>
|
|
Bug-Debian: https://bugs.debian.org/1066514
|
|
Forwarded: no
|
|
|
|
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
|
|
Upstream: https://sources.debian.org/data/main/l/lrzsz/0.12.21rc-0.1/debian/patches/include.diff
|
|
---
|
|
lib/error.c | 1 +
|
|
src/canit.c | 1 +
|
|
src/lrz.c | 1 +
|
|
src/lsyslog.c | 1 +
|
|
src/lsz.c | 1 +
|
|
src/tcp.c | 1 +
|
|
src/zperr.c | 1 +
|
|
src/zreadline.c | 1 +
|
|
8 files changed, 8 insertions(+)
|
|
|
|
diff --git a/lib/error.c b/lib/error.c
|
|
index 8b96b91..3861578 100644
|
|
--- a/lib/error.c
|
|
+++ b/lib/error.c
|
|
@@ -22,6 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
+#include <string.h>
|
|
|
|
#if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC || defined(__cplusplus)
|
|
# if __STDC__ || defined(__cplusplus)
|
|
diff --git a/src/canit.c b/src/canit.c
|
|
index f947a25..ae91807 100644
|
|
--- a/src/canit.c
|
|
+++ b/src/canit.c
|
|
@@ -24,6 +24,7 @@
|
|
#define SS_NORMAL 0
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
+#include <string.h>
|
|
#include <signal.h>
|
|
#include <setjmp.h>
|
|
#include <ctype.h>
|
|
diff --git a/src/lrz.c b/src/lrz.c
|
|
index 2f6a5ad..63e1326 100644
|
|
--- a/src/lrz.c
|
|
+++ b/src/lrz.c
|
|
@@ -27,6 +27,7 @@
|
|
#define SS_NORMAL 0
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
+#include <string.h>
|
|
#include <signal.h>
|
|
#include <ctype.h>
|
|
#include <errno.h>
|
|
diff --git a/src/lsyslog.c b/src/lsyslog.c
|
|
index d21ab35..24d8cd1 100644
|
|
--- a/src/lsyslog.c
|
|
+++ b/src/lsyslog.c
|
|
@@ -18,6 +18,7 @@
|
|
02111-1307, USA.
|
|
|
|
*/
|
|
+#define _GNU_SOURCE
|
|
#include "config.h"
|
|
#ifdef ENABLE_SYSLOG
|
|
#include "zglobal.h"
|
|
diff --git a/src/lsz.c b/src/lsz.c
|
|
index b9d2545..1598150 100644
|
|
--- a/src/lsz.c
|
|
+++ b/src/lsz.c
|
|
@@ -28,6 +28,7 @@
|
|
#define SS_NORMAL 0
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
+#include <string.h>
|
|
#include <signal.h>
|
|
#include <setjmp.h>
|
|
#include <ctype.h>
|
|
diff --git a/src/tcp.c b/src/tcp.c
|
|
index 7e1ba3f..cdf9187 100644
|
|
--- a/src/tcp.c
|
|
+++ b/src/tcp.c
|
|
@@ -33,6 +33,7 @@
|
|
#include <ctype.h>
|
|
#include <stdio.h>
|
|
#include <signal.h>
|
|
+#include <string.h>
|
|
|
|
#include "zglobal.h"
|
|
#include <stdlib.h>
|
|
diff --git a/src/zperr.c b/src/zperr.c
|
|
index 31963de..0b9dc29 100644
|
|
--- a/src/zperr.c
|
|
+++ b/src/zperr.c
|
|
@@ -22,6 +22,7 @@
|
|
#include "zglobal.h"
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
+#include <string.h>
|
|
#include <errno.h>
|
|
|
|
#ifdef __STDC__
|
|
diff --git a/src/zreadline.c b/src/zreadline.c
|
|
index dd9736b..7bc3736 100644
|
|
--- a/src/zreadline.c
|
|
+++ b/src/zreadline.c
|
|
@@ -27,6 +27,7 @@
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
+#include <string.h>
|
|
#include <signal.h>
|
|
#include <ctype.h>
|
|
#include <errno.h>
|
|
--
|
|
2.50.1
|
|
|