[PATCH] bfd: Fix regression when building bfd on mingw32

Iain Buclaw ibuclaw@gdcproject.org
Fri Jul 24 15:32:00 GMT 2015


[Reposting this on Binutils ML]

This patch is as per suggestion from Pedro, I've also added a check
for vasprintf both for completeness sake, and that there is a similar
condition for HAVE_DECL_VASPRINTF in libiberty.h too.

https://sourceware.org/ml/gdb-patches/2015-06/msg00654.html

As per my comments, I am going blind on this, but it looks correct to
me, and I can at least verify on my machine that I can see:

configure stage
---
checking whether asprintf is declared... yes
checking whether vasprintf is declared... yes
---
and in config.h
---
/* Define to 1 if you have the declaration of `asprintf', and to 0 if you
   don't. */
#define HAVE_DECL_ASPRINTF 1

/* Define to 1 if you have the declaration of `vasprintf', and to 0 if you
   don't. */
#define HAVE_DECL_VASPRINTF 1
---

So should either one be false, an appropriate declaration should be
exposed through libiberty.

Regards
Iain
---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfd_asprintf.patch
Type: text/x-patch
Size: 1967 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150724/9bf3a258/attachment.bin>


More information about the Binutils mailing list