aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport/errors.h
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2022-11-02 13:16:16 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2022-11-13 14:46:20 +0000
commita83c64f567ec7f161b8efb87205d44a2fbbf36f8 (patch)
treed4abd808b99b459bd117210690fe84b8bc89004f /gdbsupport/errors.h
parent90f902daf5edb817d57b5e377d7ad54948a5a9f4 (diff)
downloadbinutils-a83c64f567ec7f161b8efb87205d44a2fbbf36f8.zip
binutils-a83c64f567ec7f161b8efb87205d44a2fbbf36f8.tar.gz
binutils-a83c64f567ec7f161b8efb87205d44a2fbbf36f8.tar.bz2
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.
Diffstat (limited to 'gdbsupport/errors.h')
-rw-r--r--gdbsupport/errors.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbsupport/errors.h b/gdbsupport/errors.h
index 5a92578..d67d692 100644
--- a/gdbsupport/errors.h
+++ b/gdbsupport/errors.h
@@ -99,7 +99,7 @@ extern void malloc_failure (long size) ATTRIBUTE_NORETURN;
extern void flush_streams ();
-#ifdef USE_WIN32API
+#if defined(USE_WIN32API) || defined(__CYGWIN__)
/* Map the Windows error number in ERROR to a locale-dependent error
message string and return a pointer to it. Typically, the values