From 5dea9da38d9e657c10de099bce68c12fc38a39dc Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 13 Dec 2022 03:37:06 +0100 Subject: [PATCH] build: Improve C99 compatibility of __progname configure check The check uses printf, so it needs to include for compilers which do not support implicit function declarations. (They were removed from C99.) Closes: !23 Signed-off-by: Guillem Jover --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 3a1f19a..875ff04 100644 --- a/configure.ac +++ b/configure.ac @@ -241,6 +241,7 @@ const char *p = program_invocation_short_name; AC_MSG_CHECKING([for __progname]) AC_LINK_IFELSE([ AC_LANG_PROGRAM([[ +#include extern char *__progname; ]], [[ printf("%s", __progname);