summaryrefslogtreecommitdiffstats
path: root/kernel/queue.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/queue.h')
-rw-r--r--kernel/queue.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/queue.h b/kernel/queue.h
index 287965b..4a5e653 100644
--- a/kernel/queue.h
+++ b/kernel/queue.h
@@ -1,8 +1,13 @@
#ifndef LINUX_DNBD_QUEUE_H
#define LINUX_DNBD_QUEUE_H 1
+#include <linux/version.h>
#include <linux/spinlock.h>
-#include <linux/semaphore.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)
+ #include <asm/semaphore.h>
+#else
+ #include <linux/semaphore.h>
+#endif
#include <linux/list.h>
#include <linux/wait.h>