From 7d8500b7566189c7baf9ea21f216ce255b8ff127 Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Wed, 10 Mar 2010 16:39:20 +0000 Subject: [PATCH] 2010-03-10 Pierre Muller * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API. --- gdb/ChangeLog | 4 ++++ gdb/remote-fileio.c | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ad91ff6fcd..bcf1dc1c13 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2010-03-10 Pierre Muller + + * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API. + 2010-03-10 Sami Wagiaalla PR C++/11236: diff --git a/gdb/remote-fileio.c b/gdb/remote-fileio.c index 4f775ada97..2166925c40 100644 --- a/gdb/remote-fileio.c +++ b/gdb/remote-fileio.c @@ -35,6 +35,15 @@ #include #ifdef __CYGWIN__ #include /* For cygwin_conv_to_full_posix_path. */ +#include +#if CYGWIN_VERSION_DLL_MAKE_COMBINED(CYGWIN_VERSION_API_MAJOR,CYGWIN_VERSION_API_MINOR) < 181 +# define CCP_POSIX_TO_WIN_A 0 +# define CCP_WIN_A_TO_POSIX 2 +# define cygwin_conv_path(op, from, to, size) \ + (op == CCP_WIN_A_TO_POSIX) ? \ + cygwin_conv_to_full_posix_path (from, to) : \ + cygwin_conv_to_win32_path (from, to) +#endif #endif #include -- 2.34.1