summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CORE/SERVICES/COMMON/adf/linux/adf_nbuf_pvt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/CORE/SERVICES/COMMON/adf/linux/adf_nbuf_pvt.h b/CORE/SERVICES/COMMON/adf/linux/adf_nbuf_pvt.h
index 5f9565eaecac..949af0c424f0 100644
--- a/CORE/SERVICES/COMMON/adf/linux/adf_nbuf_pvt.h
+++ b/CORE/SERVICES/COMMON/adf/linux/adf_nbuf_pvt.h
@@ -36,7 +36,11 @@
#include <linux/netdevice.h>
#include <linux/dma-mapping.h>
#include <asm/types.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0))
+#include <linux/scatterlist.h>
+#else
#include <asm/scatterlist.h>
+#endif
#include <adf_os_types.h>
#include <adf_nbuf.h>