Correct `ioctl_req_t` for musl
The definition of
ioctl(2) in musl is
int ioctl (int, int, ...);, and this makes
io.c fail to build on 64-bit musl environments with Clang/LLVM due to
A patch is attached for a workaround. It is expected to work with glibc, musl, bionic (Android), and uClibc (which defines
__GLIBC__). I have no idea of other C libraries working on Linux.
Aside from this patch, it might be better if we could supply
./configure with the definition of
ioctl_req_t using e.g.