Re: [MinGW-w64]Build gdb/ctf.c failed

Eli Zaretskii
2013-03-25T08:39:09Z

> Date: Mon, 25 Mar 2013 16:24:17 +0800
> From: Yao Qi <yao@codesourcery.com>
> CC: Eli Zaretskii <eliz@gnu.org>, asmwarrior <asmwarrior@gmail.com>,
> <tromey@redhat.com>, <gdb-patches@sourceware.org>
>
> Right, 'mkdir' is declared io.h, which is included in unistd.h. Looks
> like we should use "mkdir" instead of "_mkdir". How about the patch
> below? It unbreaks the build of using mingw-w64 toolchain, while
> mingw32 toolchain doesn't complain about it.

I think you should "#undef mkdir" before redefining it, to be
absolutely safe here.

Other than that, I'm OK with this.