gdb/
authorYao Qi <yao@codesourcery.com>
Mon, 25 Mar 2013 10:55:28 +0000 (10:55 +0000)
committerYao Qi <yao@codesourcery.com>
Mon, 25 Mar 2013 10:55:28 +0000 (10:55 +0000)
* ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
instead of '_mkdir'.

gdb/ChangeLog
gdb/ctf.c

index 15e169c..e065e94 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-25  Yao Qi  <yao@codesourcery.com>
+
+       * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
+       instead of '_mkdir'.
+
 2013-03-23  Eli Zaretskii  <eliz@gnu.org>
 
        * windows-nat.c (windows_get_absolute_argv0): New function.
index 6b55986..de54051 100644 (file)
--- a/gdb/ctf.c
+++ b/gdb/ctf.c
@@ -272,7 +272,8 @@ ctf_target_save (struct trace_file_writer *self,
 }
 
 #ifdef USE_WIN32API
-#define mkdir(pathname, mode) _mkdir (pathname)
+#undef mkdir
+#define mkdir(pathname, mode) mkdir (pathname)
 #endif
 
 /* This is the implementation of trace_file_write_ops method