From 7ff3da9abac2fbf06e38172d3b7ddeca3f73d3fe Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 24 Feb 2011 17:53:25 +0000 Subject: [PATCH] 2.6.38 build fix (partially merged r3239 from the trunk). git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3258 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst_const.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scst/include/scst_const.h b/scst/include/scst_const.h index 29bfd1ee5..4633c4339 100644 --- a/scst/include/scst_const.h +++ b/scst/include/scst_const.h @@ -244,9 +244,13 @@ enum scst_cdb_flags { #define INIT_ELEMENT_STATUS 0x07 #define INIT_ELEMENT_STATUS_RANGE 0x37 #define PREVENT_ALLOW_MEDIUM 0x1E +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 38) #define READ_ATTRIBUTE 0x8C +#endif #define REQUEST_VOLUME_ADDRESS 0xB5 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 38) #define WRITE_ATTRIBUTE 0x8D +#endif #define WRITE_VERIFY_16 0x8E #define VERIFY_6 0x13 #ifndef VERIFY_12