mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibCore: Use void* instead of FlatPtr for ioctl() arg on Haiku
This commit is contained in:
parent
a1572555c2
commit
1e25ab956c
Notes:
sideshowbarker
2024-07-19 16:51:00 +09:00
Author: https://github.com/ghost Commit: https://github.com/SerenityOS/serenity/commit/1e25ab956c0 Pull-request: https://github.com/SerenityOS/serenity/pull/20808 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/diversys
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue