On Friday 15 March 2013 14:27:59 Eli Zaretskii wrote: > > From: Tom Tromey > > Cc: pierre.muller@ics-cnrs.unistra.fr, yao@codesourcery.com, > > > > gdb-patches@sourceware.org > > > > Date: Fri, 15 Mar 2013 12:21:59 -0600 > > > > Eli> I'd prefer that we provide a mkdir macro or maybe a gdb_mkdir > > function Eli> that would hide this ugliness from the mainline sources. > > A macro Eli> called 'mkdir' could on MS-Windows call a function called > > '_mkdir' Eli> ignoring the second argument. > > > > There's a gnulib mkdir module. > > That's another possibility, yes. Although for such a simple job I'm > not sure the gnulib complexity is justified. But I don't object to > using the gnulib mkdir module. we pulled in gnulib specifically to avoid growing a custom compat layer in gdb. seems like adding it to the existing gnulib list is pretty trivial work. -mike