blob: c9e2760a27c7d230cfb619967233e418a095fb77 [file] [log] [blame]
Andrew Geissler87f5cff2022-09-30 13:13:31 -05001From a0ae303fe0bcd81dfb1a649cc5e7a372d3bd878d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 1 Sep 2022 20:44:42 -0700
4Subject: [PATCH] configure: Include stdio.h for printf
5
6Fixes test for __progname
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 configure.ac | 4 +++-
12 1 file changed, 3 insertions(+), 1 deletion(-)
13
14--- a/configure.ac
15+++ b/configure.ac
16@@ -2791,7 +2791,9 @@ if test "x$ac_cv_have_control_in_msghdr"
17 fi
18
19 AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [
20- AC_TRY_LINK([],
21+ AC_TRY_LINK([
22+#include <stdio.h>
23+],
24 [ extern char *__progname; printf("%s", __progname); ],
25 [ ac_cv_libc_defines___progname="yes" ],
26 [ ac_cv_libc_defines___progname="no" ]
27--- a/configure
28+++ b/configure
29@@ -14838,7 +14838,7 @@ else
30
31 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32 /* end confdefs.h. */
33-
34+#include <stdio.h>
35 int
36 main ()
37 {