diff --git a/scst/include/backport.h b/scst/include/backport.h index 47f27afbf..d83dbd00c 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include /* struct scatterlist */ @@ -668,6 +669,15 @@ kernel_write_backport(struct file *file, const void *buf, size_t count, #define kernel_write kernel_write_backport #endif +/* */ + +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 13, 0) +/* + * See also commit b35108a51cf7 ("jiffies: Define secs_to_jiffies()") # v6.13. + */ +#define secs_to_jiffies(_secs) (unsigned long)((_secs) * HZ) +#endif + /* */ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 21, 0) || \