From c898434525948c47fed47dca555f7db87e6a24b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Garc=C3=A9s?= Date: Wed, 19 Apr 2017 01:25:04 +0200 Subject: [PATCH] Fix build for API changes in kernel 4.11 --- include/osdep_service.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/osdep_service.h b/include/osdep_service.h index 7562c86..d78defd 100644 --- a/include/osdep_service.h +++ b/include/osdep_service.h @@ -20,6 +20,10 @@ #ifndef __OSDEP_SERVICE_H_ #define __OSDEP_SERVICE_H_ +#include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) +#include +#endif #define _FAIL 0 #define _SUCCESS 1