ntdll/unix: Fix building on musl by explicitly including asm/ioctls.h.

After commit 898ab8dab1 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.

Signed-off-by: Fotios Valasiadis <fvalasiad@gmail.com>
This commit is contained in:
Fotios Valasiadis 2024-05-05 03:34:57 +03:00 committed by Alexandre Julliard
parent e86e6a6f48
commit 24ca848c56

View file

@ -33,6 +33,7 @@
#include <stdio.h>
#ifdef HAVE_ASM_TERMBITS_H
# include <asm/termbits.h>
# include <asm/ioctls.h>
#else
# include <termios.h>
#endif