2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
authorPierre Muller <muller@sourceware.org>
Wed, 10 Mar 2010 16:39:20 +0000 (16:39 +0000)
committerPierre Muller <muller@sourceware.org>
Wed, 10 Mar 2010 16:39:20 +0000 (16:39 +0000)
* remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.

gdb/ChangeLog
gdb/remote-fileio.c

index ad91ff6fcdda7ca56dbe83f336b1c3b78dc89818..bcf1dc1c137ca025c91a841de820722c184285e9 100644 (file)
@@ -1,3 +1,7 @@
+2010-03-10  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
+
 2010-03-10  Sami Wagiaalla  <swagiaal@redhat.com>
 
        PR C++/11236:
index 4f775ada972333fac12cf498bfcb027e080fe51e..2166925c400c049fba19c11119510ebd66bfaf10 100644 (file)
 #include <sys/time.h>
 #ifdef __CYGWIN__
 #include <sys/cygwin.h>                /* For cygwin_conv_to_full_posix_path.  */
+#include <cygwin/version.h>
+#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 <signal.h>