Compilation for kernel 2.6.24

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@292 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Stanislaw Gruszka
2008-02-19 10:12:12 +00:00
parent d512dabf27
commit 0d9a7ade1a
4 changed files with 13 additions and 5 deletions
+8
View File
@@ -183,6 +183,14 @@ typedef struct scsi_host_template Scsi_Host_Template;
#undef max
#endif
#ifndef DECLARE_MUTEX_LOCKED
#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
#define sg_page(_sg) ((_sg)->page)
#define sg_assign_page(_sg, _pg) ((_sg)->page = (_pg))
#endif
/*
* Normally this should be taken care of by typedefs,