diff options
Diffstat (limited to 'media-libs/flickcurl/files/flickcurl-1.26-c99-configure.patch')
-rw-r--r-- | media-libs/flickcurl/files/flickcurl-1.26-c99-configure.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/media-libs/flickcurl/files/flickcurl-1.26-c99-configure.patch b/media-libs/flickcurl/files/flickcurl-1.26-c99-configure.patch new file mode 100644 index 000000000000..40fc7ff7b141 --- /dev/null +++ b/media-libs/flickcurl/files/flickcurl-1.26-c99-configure.patch @@ -0,0 +1,23 @@ +https://bugs.gentoo.org/899812 +https://github.com/dajobe/flickcurl/pull/43 + +From 940019e2635f1bc21b712fadbf4f73ca45a26379 Mon Sep 17 00:00:00 2001 +From: Florian Weimer <fweimer@redhat.com> +Date: Fri, 13 Jan 2023 09:33:08 +0100 +Subject: [PATCH] configure: Include <stdio.h> in vsnprintf check + +Avoid implicit declaration of vsnprintf for improved C99 +compatibility. Otherwise the configure script will fail +to detect vsnprintf support with future compilers which +do not support implicit function declarations. +--- a/configure.ac ++++ b/configure.ac +@@ -133,6 +133,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_GETOPT_H + if test $ac_cv_func_vsnprintf = yes; then + AC_MSG_CHECKING(vsnprintf has C99 compatible return value) + AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdarg.h> ++#include <stdio.h> + int is_c99(char *s, ...) { + char buffer[32]; + va_list args; + |