unzip: Fix build with GCC-15

Add a patch to remove redundant declarations

(From OE-Core rev: b84d6ceb89277462d7069defaeb9ecfed9c30d56)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
Khem Raj 2025-08-22 01:04:14 +02:00 committed by Steve Sakoman
parent 38b5ba89e6
commit b63fff4544
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,18 @@
Do not redefine gmtime(), localtime()
They are already provided by system time.h header
Upstream-Status: Inactive-Upstream [need a new release]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
--- a/unix/unxcfg.h
+++ b/unix/unxcfg.h
@@ -117,7 +117,6 @@ typedef struct stat z_stat;
# endif
#else
# include <time.h>
- struct tm *gmtime(), *localtime();
#endif
#if (defined(BSD4_4) || (defined(SYSV) && defined(MODERN)))

View File

@ -32,6 +32,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/infozip/UnZip%206.x%20%28latest%29/UnZip%206.0/
file://CVE-2022-0530.patch \
file://0001-configure-Add-correct-system-headers-and-prototypes-.patch \
file://0001-unix-configure-fix-detection-for-cross-compilation.patch \
file://gcc15.patch \
"
UPSTREAM_VERSION_UNKNOWN = "1"