[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug libctf/25155] libctf directory doesn't compile with MinGW
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug libctf/25155] libctf directory doesn't compile with MinGW |
Date: |
Sun, 05 Jan 2020 06:12:30 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25155
--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The gdb-9-branch branch has been updated by Joel Brobecker
<address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=84baa6a51500a6e6faf422ab12f61c5c9857cfd0
commit 84baa6a51500a6e6faf422ab12f61c5c9857cfd0
Author: Eli Zaretskii <address@hidden>
Date: Sun Jan 5 09:50:27 2020 +0400
libctf: Add configure check for asprintf (for MinGW)
This commit fixes a compilation warning when compiling libctf
on MinGW:
libctf/ctf-dump.c:118:8: warning: implicit declaration of function
'asprintf'; did you mean 'vasprintf'? [-Wimplicit-function-declaration]
if (asprintf (&bit, " %lx: [slice 0x%x:0x%x]",
^~~~~~~~
vasprintf
MinGW doesn't provide that function, so we depend on the one provided
by libiberty. However, the declaration is guarded by HAVE_DECL_ASPRINTF,
which we do not have in libctf's config.h.
libctf/ChangeLog:
PR binutils/25155:
* configure.ac: Add AC_CHECK_DECLS([asprintf]).
* configure, config.h.in: Regenerate.
(cherry picked from commit 3a657c600bde2d3bd84870f75968622bbdb69ce8)
--
You are receiving this mail because:
You are on the CC list for the bug.