LibCore: Use void* instead of FlatPtr for ioctl() arg on Haiku

This commit is contained in:
nipos 2023-08-27 21:34:42 +02:00 committed by Andrew Kaster
parent a1572555c2
commit 1e25ab956c
Notes: sideshowbarker 2024-07-19 16:51:00 +09:00

View file

@ -709,7 +709,11 @@ ErrorOr<void> ioctl(int fd, unsigned request, ...)
{
va_list ap;
va_start(ap, request);
#ifdef AK_OS_HAIKU
void* arg = va_arg(ap, void*);
#else
FlatPtr arg = va_arg(ap, FlatPtr);
#endif
va_end(ap);
if (::ioctl(fd, request, arg) < 0)
return Error::from_syscall("ioctl"sv, -errno);