From 487a846ef8e822f983fbaab3f3278ee00345604c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 24 Sep 2010 17:59:42 +0000 Subject: [PATCH] Follow-up for r2216: made sure that scst_vdisk.c compiles again on kernels before 2.6.33. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2245 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/scst/include/scst.h b/scst/include/scst.h index b158338ab..cd8272635 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -39,6 +39,22 @@ #include #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33) +/* + * From . See also commit + * f57e4502cea471c69782d4790c71d8414ab49a9d. + */ +#define UNMAP 0x42 +#endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27) +/* + * From . See also commit + * d30a2605be9d5132d95944916e8f578fcfe4f976. + */ +#define BLKDISCARD _IO(0x12,119) +#endif + #ifdef INSIDE_KERNEL_TREE #include #else