From 0aca68d0801f32e7d6d274656f568b902e9deffd Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 12 Jun 2008 11:32:12 +0000 Subject: [PATCH] Patch from Dotan Barak (applied manually): Fix compilation failure in kernel 2.6.19 and below (bug.h was added only stafrting kernel 2.6.20). Signed-off-by: Dotan Barak git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@406 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst_debug.h | 3 +++ 1 file changed, 3 insertions(+) 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