diff options
author | Pierre Muller <muller@sourceware.org> | 2010-03-10 16:39:20 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2010-03-10 16:39:20 +0000 |
commit | 7d8500b7566189c7baf9ea21f216ce255b8ff127 (patch) | |
tree | 163a0a153d3a7a90e8ac93f7d831cd684dfc2d65 /gdb/remote-fileio.c | |
parent | c0cc3a767075f2411cf855ec10d038e591ae5368 (diff) | |
download | gdb-7d8500b7566189c7baf9ea21f216ce255b8ff127.zip gdb-7d8500b7566189c7baf9ea21f216ce255b8ff127.tar.gz gdb-7d8500b7566189c7baf9ea21f216ce255b8ff127.tar.bz2 |
2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
* remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
Diffstat (limited to 'gdb/remote-fileio.c')
-rw-r--r-- | gdb/remote-fileio.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/remote-fileio.c b/gdb/remote-fileio.c index 4f775ad..2166925 100644 --- a/gdb/remote-fileio.c +++ b/gdb/remote-fileio.c @@ -35,6 +35,15 @@ #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> |