scst: Fix build on 2.6.31 and earlier kernels

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4349 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2012-06-15 06:35:54 +00:00
parent c770a04b0c
commit 74ef459092
+5
View File
@@ -320,6 +320,11 @@ enum scst_cdb_flags {
#define SAI_READ_CAPACITY_16 0x10
#endif
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 32)
#ifndef SAI_GET_LBA_STATUS
#define SAI_GET_LBA_STATUS 0x12
#endif
#endif
#ifndef GENERATING_UPSTREAM_PATCH
#ifndef REPORT_LUNS
#define REPORT_LUNS 0xa0