From 74ef459092f6171a4670f50c180b54c6af2818a4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 15 Jun 2012 06:35:54 +0000 Subject: [PATCH] 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 --- scst/include/scst_const.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scst/include/scst_const.h b/scst/include/scst_const.h index c7b374c3a..900bb4ea8 100644 --- a/scst/include/scst_const.h +++ b/scst/include/scst_const.h @@ -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