From 7f8570bfa16bd41e4536385b46742cc316546529 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 14 Mar 2026 17:06:28 -0700 Subject: [PATCH] os: include in ospoll.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes build failure in mingw-cross-build: ../os/ospoll.c: In function ‘ospoll_destroy’: ../os/ospoll.c:266:9: error: implicit declaration of function ‘assert’ [-Werror=implicit-function-declaration] 266 | assert (ospoll->num == 0); | ^~~~~~ ../os/ospoll.c:59:1: note: ‘assert’ is defined in header ‘’; did you forget to ‘#include ’? 58 | #include "xserver_poll.h" +++ |+#include 59 | #define POLL 1 ../os/ospoll.c:266:9: warning: nested extern declaration of ‘assert’ [-Wnested-externs] 266 | assert (ospoll->num == 0); | ^~~~~~ Signed-off-by: Alan Coopersmith Part-of: --- os/ospoll.c | 1 + 1 file changed, 1 insertion(+) diff --git a/os/ospoll.c b/os/ospoll.c index 71410a2e2..bca039a10 100644 --- a/os/ospoll.c +++ b/os/ospoll.c @@ -24,6 +24,7 @@ #include #endif +#include #include #include #include