On Wed, 20 Jun 2012, rbmj wrote: > There is an alternate solution- I could use fixincludes to add a macro to wrap > over mkdir on VxWorks. A couple of possible ways to do this: > > 1. Define a normal macro to posix-ify it, i.e. #define mkdir(a, b) > ((mkdir)(a)). Since this would hide single-argument mkdir, it would probably > be best to wrap it in #ifdef IN_GCC in order to avoid breaking existing > vxWorks code.
Beware, if you go this route, I think you need to evaluate the "mode" argument (b above), i.e. something like "#define mkdir(a, b) ((b), (mkdir) (a))". brgds, H-P