From 30599e72bfd46ca5df4742adaae238339e872cf1 Mon Sep 17 00:00:00 2001 From: Alain Knaff Date: Mon, 13 Oct 2025 19:39:24 +0200 Subject: [PATCH] include: add __poll_t typedef in include/linux/types.h for Android/Termux On Android/Termux, linux/types.h is included (indirectly) by sys/epoll.h which depends on this definition to be present. Signed-off-by: Alain Knaff --- include/linux/types.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/types.h b/include/linux/types.h index b15252a..cfb558a 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -30,4 +30,7 @@ struct list_head { struct list_head *next, *prev; }; +/* needed on Android/Termux, where this linux/types.h is included by other include files */ +typedef unsigned __bitwise __poll_t; + #endif