diff mbox

[05/14] header: types.h: add __poll_t

Message ID 20180304225717.20890-6-hauke@hauke-m.de (mailing list archive)
State Accepted
Headers show

Commit Message

Hauke Mehrtens March 4, 2018, 10:57 p.m. UTC
__poll_t was added for kernel 4.15 in commit 8ced390c2b ("define
__poll_t, annotate constants"), add it here for older kernel versions.
Multiple drivers are using this type.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 backport/backport-include/linux/types.h | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/backport/backport-include/linux/types.h b/backport/backport-include/linux/types.h
index 160570b4..0671e140 100644
--- a/backport/backport-include/linux/types.h
+++ b/backport/backport-include/linux/types.h
@@ -7,4 +7,8 @@ 
 typedef __s64 time64_t;
 #endif
 
+#if LINUX_VERSION_IS_LESS(4,16,0)
+typedef unsigned __poll_t;
+#endif
+
 #endif /* __BACKPORT_TYPES */