summaryrefslogtreecommitdiffstats
path: root/kernel/core.h
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-03-26 15:45:38 +0100
committerDirk von Suchodoletz2009-03-26 15:45:38 +0100
commit9b308b4215dda5de3536e8cf0fd7e9842c814bf7 (patch)
tree9308cd7d71f093841b1f07dcb57d91eacc46322d /kernel/core.h
parent * added kernel version check to module source (diff)
downloaddnbd2-9b308b4215dda5de3536e8cf0fd7e9842c814bf7.tar.gz
dnbd2-9b308b4215dda5de3536e8cf0fd7e9842c814bf7.tar.xz
dnbd2-9b308b4215dda5de3536e8cf0fd7e9842c814bf7.zip
It compiles - but if it works :)
git-svn-id: http://svn.openslx.org/svn/openslx/contrib/dnbd2/trunk@2759 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'kernel/core.h')
-rw-r--r--kernel/core.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/core.h b/kernel/core.h
index 3c75ade..1b315d1 100644
--- a/kernel/core.h
+++ b/kernel/core.h
@@ -30,7 +30,12 @@ extern int dnbd2_major;
* 2. Enqueues the request into the send-queue.
* 3. Wakes up dnbd2_tx_loop.
*/
-void dnbd2_request(request_queue_t *q);
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)
+ void dnbd2_request(struct request_queue *q);
+#else
+ void dnbd2_request(request_queue_t *q);
+#endif
+
/*
* This thread sleeps until there are requests in the send-queue.