From: Fotios Valasiadis fvalasiad@gmail.com
After commit 898ab8dab19d498c17859f39a55e317ee7e367a5 wine would no longer build on musl.
Issue is that apparently TCSETS2 isn't defined when including sys/ioctl.h.
A little digging shows that glibc goes ahead and includes asm/ioctls.h in sys/ioctl.h, providing said macro. Musl on the other hand doesn't and relies on bits/ioctl.h, which lacks said macro.
Since there is no mention in the manpage about the need to include asm/ioctls.h, uncertain if that's an issue with musl or the manpage, would like some help on that front so I can go open PRs to fix that respectively.
Signed-off-by: Fotios Valasiadis fvalasiad@gmail.com --- dlls/ntdll/unix/serial.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/ntdll/unix/serial.c b/dlls/ntdll/unix/serial.c index d48c49c87f6..951ed5d9386 100644 --- a/dlls/ntdll/unix/serial.c +++ b/dlls/ntdll/unix/serial.c @@ -41,6 +41,7 @@ #include <sys/stat.h> #include <sys/types.h> #include <sys/ioctl.h> +#include <asm/ioctls.h> #ifdef HAVE_SYS_FILIO_H # include <sys/filio.h> #endif