Fix Cygwin build after 02d04eac
authorJon Turney <jon.turney@dronecode.org.uk>
Wed, 2 Nov 2022 13:16:16 +0000 (13:16 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Sun, 13 Nov 2022 14:46:20 +0000 (14:46 +0000)
commita83c64f567ec7f161b8efb87205d44a2fbbf36f8
treed4abd808b99b459bd117210690fe84b8bc89004f
parent90f902daf5edb817d57b5e377d7ad54948a5a9f4
Fix Cygwin build after 02d04eac

Commit 02d04eac "Use strwinerror in gdb/windows-nat.c" also moves
strwinerror() under the USE_WIN32API conditional, which is not defined
for Cygwin (and looks like it shouldn't be, as appears to imply
non-POSIX and MiNGW and WinSock...)

Also enable the declaration and definition of strwinerror() when
__CYGWIN__ is defined.
gdbsupport/errors.cc
gdbsupport/errors.h