This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=6ccac302cd1867ece3bf5b0f6da522d326268c1e

commit 6ccac302cd1867ece3bf5b0f6da522d326268c1e
Author: Guillem Jover <[email protected]>
AuthorDate: Wed Dec 14 04:23:57 2022 +0100

    build: Include <stdio.h> for printf() usage in __progname check
    
    In the C99 standard, the implicit function declarations got removed,
    and as we use printf() we need to include the header declaring it.
---
 m4/dpkg-funcs.m4 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/m4/dpkg-funcs.m4 b/m4/dpkg-funcs.m4
index 127a67ea3..c480c10dc 100644
--- a/m4/dpkg-funcs.m4
+++ b/m4/dpkg-funcs.m4
@@ -191,6 +191,7 @@ const char *p = program_invocation_short_name;
   AC_MSG_CHECKING([for __progname])
   AC_LINK_IFELSE([
     AC_LANG_PROGRAM([[
+#include <stdio.h>
 extern char *__progname;
     ]], [[
 printf("%s", __progname);

-- 
Dpkg.Org's dpkg

Reply via email to