Fix windows build with MSYS2
Summary
Building rtems-tools
on MSYS2 was broken in a few ways. The wscript
uses redirection of stdout
which did not work directly as written. Also, msys2/mingw64 does not provide definitions for gid_t
and uid_t
which leads to compile errors in libelf
.
I have fixed these issues although I'm open to suggestions if there is a better way to deal with the missing typedefs rather than what I did with a custom sys/types.h
imported into the rtemstoolkit
includes for MSYS2 builds.
I did not find any open Issue numbers for these problems.
Someone needs to confirm that Cygwin build still works with this MR.