From cadab61a48da0136caf42ee18fadb18066e919c5 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 20 Dec 2022 18:01:07 +1030 Subject: PR29915, bfdio.c does not compile with mingw.org's MinGW PR 29915 * configure.ac: Add AC_CHECK_DECLS test ___lc_codepage_func. * configure: Regenerate. * config.in: Regenerate. * bfdio.c (___lc_codepage_func): Move declaration to.. (_bfd_real_fopen): ..here, and use !HAVE_DECL____LC_CODEPAGE_FUNC. (cherry picked from commit 9d0991449285833b9a77cc02850a1e113e460362) --- bfd/configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'bfd/configure.ac') diff --git a/bfd/configure.ac b/bfd/configure.ac index 45a293d..da6933b 100644 --- a/bfd/configure.ac +++ b/bfd/configure.ac @@ -227,6 +227,7 @@ AC_CHECK_FUNCS(fcntl fdopen fileno fls getgid getpagesize getrlimit getuid \ sysconf) AC_CHECK_DECLS([basename, ffs, stpcpy, asprintf, vasprintf, strnlen]) +AC_CHECK_DECLS([___lc_codepage_func], [], [], [[#include ]]) BFD_BINARY_FOPEN -- cgit v1.1