From: Yao Qi Date: Mon, 25 Mar 2013 10:55:28 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a4341769f7100d0174cf1f725d5316b27da0e54b;p=binutils-gdb.git gdb/ * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir' instead of '_mkdir'. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 15e169ca301..e065e94569b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-03-25 Yao Qi + + * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir' + instead of '_mkdir'. + 2013-03-23 Eli Zaretskii * windows-nat.c (windows_get_absolute_argv0): New function. diff --git a/gdb/ctf.c b/gdb/ctf.c index 6b55986f6b6..de54051e90d 100644 --- 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