This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]