diff options
author | Alan Modra <amodra@gmail.com> | 2022-12-20 18:01:07 +1030 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2022-12-22 12:37:55 +0200 |
commit | cadab61a48da0136caf42ee18fadb18066e919c5 (patch) | |
tree | 516d3e11f3f84b0522c50bf55851a86038ef4194 /bfd/configure.ac | |
parent | 4547ad37f8062eb6763774c068522825451446dc (diff) | |
download | gdb-cadab61a48da0136caf42ee18fadb18066e919c5.zip gdb-cadab61a48da0136caf42ee18fadb18066e919c5.tar.gz gdb-cadab61a48da0136caf42ee18fadb18066e919c5.tar.bz2 |
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)
Diffstat (limited to 'bfd/configure.ac')
-rw-r--r-- | bfd/configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
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 <locale.h>]]) BFD_BINARY_FOPEN |