]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Rename _doprnt -> _bfd_doprnt to fix DJGPP bfd build (and likely others)
authorPedro Alves <palves@redhat.com>
Wed, 11 Oct 2017 11:47:25 +0000 (12:47 +0100)
committerAlan Modra <amodra@gmail.com>
Sun, 5 Nov 2017 09:01:43 +0000 (19:31 +1030)
commitcf341703b111d13a336c4ec15f150d2e657894db
treee0acad90b0f03ce1e3b562a96f4820f9b6fb33e8
parent5eb4bfb18ee535ecf12058b64e089e10c5cbfc31
Rename _doprnt -> _bfd_doprnt to fix DJGPP bfd build (and likely others)

Building bfd/ for DJGPP, I see:

 ../../src/bfd/bfd.c:642:1: error: conflicting types for '_doprnt'
  _doprnt (FILE *stream, const char *format, va_list ap)
  ^~~~~~~
 In file included from ../../src/bfd/sysdep.h:37:0,
  from ../../src/bfd/bfd.c:367:
 /usr/lib64/gcc/i586-pc-msdosdjgpp/6.1.0/include-fixed/stdio.h:171:5: note: previous declaration of '_doprnt' was here
  int _doprnt(const char *_fmt, va_list _args, FILE *_f);
      ^~~~~~~

Possible fixes the build on other systems too -- _doprnt was/is an
exported symbol on old Unix/BSD systems too.

bfd/ChangeLog:
2017-10-11  Pedro Alves  <palves@redhat.com>

* bfd.c (_doprnt): Rename to ...
(_bfd_doprnt): ... this.
(error_handler_internal): Adjust.

(cherry picked from commit 8f314ad58ec824ce6c8467af29f11583f79a80ea)
bfd/ChangeLog
bfd/bfd.c