[patch] Check readlink during configuring gdbserver
Yao Qi
yao@codesourcery.com
Thu Feb 9 02:45:00 GMT 2012
I tried to build gdbserver as host=i686-mingw32 on linux, but get the
following error,
cc1: warnings being treated as errors
../gdb/gdb/gdbserver/hostio.c: In function 'handle_readlink':
../gdb/gdb/gdbserver/hostio.c:475: error: implicit declaration of
function 'readlink'
Even I remove -Werror temporarily, `readlink' can't be found during
linking,
hostio.o: In function `handle_readlink':
../gdb/gdb/gdbserver/hostio.c:475: undefined reference to `_readlink'
This patch is to add `readlink' in AC_CHECK_FUNCS, to check it
during configure. OK to apply?
--
Yao (é½å°§)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-check-readlink.patch
Type: text/x-patch
Size: 2475 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20120209/acd82502/attachment.bin>
More information about the Gdb-patches
mailing list