Hello,

The attached patch adjusts a very old fixincludes hack for
VxWorks, to expose a varargs function prototype for "mkdir"
instead of a varargs macro (!). 

The function version is more amenable to calls from C++ like
std::mkdir(arg1, arg2).

This helps libstdc++ build failures for old versions
of VxWorks, 6.9 in particular for which we were able to get
a successful complete build after this and a couple of other
fixincludes changes which I'll send separately.

Also bootstrapped and regression tested ok for x86_64-linux,
just in case.

Ok to commit?

Thanks in advance,

With Kind Regards,

Olivier


2021-12-16  Olivier Hainque  <hain...@adacore.com>

fixincludes/
        * inclhack.def (vxworks_posix_mkdir): Refine to expose
        a varargs interface.
        * tests/base/sys/stat.h: Update expected results.
        * fixinc.x: Regenerate.

Attachment: 0001-Adjust-VxWorks-fixincludes-hack-for-mkdir-to-work-fo.patch
Description: Binary data


Reply via email to