[PATCH] libctf: eschew %zi format specifier
Tom Tromey
tromey@adacore.com
Wed Jun 5 18:03:00 GMT 2019
>>>>> "Nick" == Nick Alcock <nick.alcock@oracle.com> writes:
Nick> No strndup()?! Can't we even rely on POSIX.1-2001? It's old enough to
Nick> vote! (I guess I'll have to AC_LIBOBJ a replacement in.)
libiberty has xstrndup. Maybe there's a reason libctf can't use
libiberty?
Soon I hope to move gnulib to top-level. That would make some of this
stuff simpler. However, it may be tricky, depending on your exact
needs.
Anyway I looked through the mingw string.h and, yeah, no strndup.
$ pwd
/usr/i686-w64-mingw32/sys-root/mingw/include
$ grep -R strndup .
$ rpm -qf string.h
mingw32-headers-5.0.4-2.fc29.noarch
Tom
More information about the Binutils
mailing list