diff options
author | Sam James <sam@gentoo.org> | 2023-12-19 10:17:40 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-12-19 11:03:39 +0000 |
commit | d19264ddf64e2a582739965121381cafc4b8ec1f (patch) | |
tree | 12df2db6e3828afcd2d1387f5b5461fceaf61a3b /app-pda/libplist/files | |
parent | media-video/xine-ui: fix modern C issues in configure (diff) | |
download | gentoo-d19264ddf64e2a582739965121381cafc4b8ec1f.tar.gz gentoo-d19264ddf64e2a582739965121381cafc4b8ec1f.tar.bz2 gentoo-d19264ddf64e2a582739965121381cafc4b8ec1f.zip |
app-pda/libplist: fix modern C issue in configure
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-pda/libplist/files')
-rw-r--r-- | app-pda/libplist/files/libplist-2.3.0-configure-c99.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app-pda/libplist/files/libplist-2.3.0-configure-c99.patch b/app-pda/libplist/files/libplist-2.3.0-configure-c99.patch new file mode 100644 index 000000000000..dfe3714c46e2 --- /dev/null +++ b/app-pda/libplist/files/libplist-2.3.0-configure-c99.patch @@ -0,0 +1,22 @@ +https://github.com/libimobiledevice/libplist/commit/b3cf5bec39de69bf06c7813689f03cbe58f45ca9 + +From b3cf5bec39de69bf06c7813689f03cbe58f45ca9 Mon Sep 17 00:00:00 2001 +From: Florian Weimer <fweimer@redhat.com> +Date: Mon, 18 Dec 2023 11:14:40 +0100 +Subject: [PATCH] configure: Use string for tm_zone assignment + +This matches what the actual sources do. Clang 16 and GCC 14 +no longer support converting ints to pointers implicitly, so the +configure probe always fails with these compilers. +--- a/configure.ac ++++ b/configure.ac +@@ -129,7 +129,7 @@ AC_CACHE_CHECK(for tm_zone in struct tm, ac_cv_struct_tm_zone, + #include <time.h> + ], [ + struct tm tm; +- tm.tm_zone = 1; ++ tm.tm_zone = (char*)"UTC"; + ])], + [ac_cv_struct_tm_zone=yes], + [ac_cv_struct_tm_zone=no] + |