diff --git a/scst/include/scst_debug.h b/scst/include/scst_debug.h index cfec7dcca..881f50789 100644 --- a/scst/include/scst_debug.h +++ b/scst/include/scst_debug.h @@ -21,7 +21,10 @@ #define __SCST_DEBUG_H #include /* for CONFIG_* */ + +#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 19) #include /* for WARN_ON_ONCE */ +#endif #if !defined(EXTRACHECKS) && defined(CONFIG_SCSI_TARGET_EXTRACHECKS) #define EXTRACHECKS