diff --git a/fcst/fcst.h b/fcst/fcst.h index d1846c6d8..2afd3c08a 100644 --- a/fcst/fcst.h +++ b/fcst/fcst.h @@ -19,9 +19,15 @@ #ifdef INSIDE_KERNEL_TREE #include +#define NEW_LIBFC_API #else #include #include "scst.h" +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0) || \ + defined(CONFIG_SUSE_KERNEL) && \ + LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0) +#define NEW_LIBFC_API +#endif #endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0) || \