mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 12:41:26 +00:00
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
This commit is contained in:
@@ -39,6 +39,22 @@
|
||||
#include <scsi/scsi_eh.h>
|
||||
#include <scsi/scsi.h>
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
|
||||
/*
|
||||
* From <scsi/scsi.h>. See also commit
|
||||
* f57e4502cea471c69782d4790c71d8414ab49a9d.
|
||||
*/
|
||||
#define UNMAP 0x42
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27)
|
||||
/*
|
||||
* From <linux/fs.h>. See also commit
|
||||
* d30a2605be9d5132d95944916e8f578fcfe4f976.
|
||||
*/
|
||||
#define BLKDISCARD _IO(0x12,119)
|
||||
#endif
|
||||
|
||||
#ifdef INSIDE_KERNEL_TREE
|
||||
#include <scst/scst_const.h>
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user