mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-11 02:59:07 +08:00
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 <github@misc.lka.org.lu>
This commit is contained in:
committed by
Andrii Nakryiko
parent
3d451d916f
commit
30599e72bf
@@ -30,4 +30,7 @@ struct list_head {
|
|||||||
struct list_head *next, *prev;
|
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
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user