From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ismael Luceno <ismael@sourcemage.org>
Date: Fri, 09 Oct 2026 22:05:00 +0200
Subject: [PATCH] Fix build with musl libc

Including both the libc <sys/stat.h> and the kernel UAPI
<linux/stat.h> fails, as they both define struct statx and
struct statx_timestamp with no guards against each other.

The kernel header is fully redundant here: the io_uring
helpers only need struct statx and the STATX_* and AT_*
macros, all of which the libc header already provides.

Origin: Source Mage
Upstream-Status: Pending
Signed-off-by: Ismael Luceno <ismael@sourcemage.org>
---
 io_uring_engine.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/io_uring_engine.h b/io_uring_engine.h
--- a/io_uring_engine.h
+++ b/io_uring_engine.h
@@ -7,7 +7,7 @@
 #include <string_view>
 #include <sys/socket.h>
 #include <sys/types.h>
-#include <linux/stat.h>
+#include <sys/stat.h>
 
 struct io_uring_sqe;
 #ifndef WITHOUT_URING
