Message ID | 20180304225717.20890-6-hauke@hauke-m.de (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
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 */
__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(+)