From 98b8a27b91591e6a124cc1d10e211e8997b248cf Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 20 Dec 2022 11:15:34 +0100 Subject: [PATCH] Add hack to work around missing @packed support --- ev/+linux/loop.ha | 3 ++- diff --git a/ev/+linux/loop.ha b/ev/+linux/loop.ha index 887e62d73a646292b555fe63def83b279f39e8cf..21988c887aebbed913d9622e35cc26f0835d494c 100644 --- a/ev/+linux/loop.ha +++ b/ev/+linux/loop.ha @@ -81,7 +81,8 @@ loop.fd, &loop.events[0], maxev: int, millis, null)!; for (let i = 0; i < nevent; i += 1) { - const ev = &loop.events[i]; + // XXX: https://todo.sr.ht/~sircmpwn/hare/783 + const ev = &(&loop.events[i]: *[*]u8)[12 * i]: *rt::epoll_event; const file = ev.data.ptr: *file; if (ev.events == 0) { continue; -- 2.48.1