On 12/17/2021 4:55 AM, Olivier Hainque via Gcc-patches wrote:
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.
Given how vxworks specific these fixinc bits are, I think they reasonably fall under maintainership of vxworks bits.

So I think you can/should self-approve :-)

jeff

Reply via email to