Patch from Dotan Barak <dotanba@gmail.com> (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 <dotanba@gmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@406 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2008-06-12 11:32:12 +00:00
parent 51b18560a1
commit 0aca68d080

View File

@@ -21,7 +21,10 @@
#define __SCST_DEBUG_H
#include <linux/autoconf.h> /* for CONFIG_* */
#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 19)
#include <linux/bug.h> /* for WARN_ON_ONCE */
#endif
#if !defined(EXTRACHECKS) && defined(CONFIG_SCSI_TARGET_EXTRACHECKS)
#define EXTRACHECKS