summaryrefslogtreecommitdiffstats
path: root/kernel/dnbd.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/dnbd.h')
-rw-r--r--kernel/dnbd.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/dnbd.h b/kernel/dnbd.h
index a744038..1cac03b 100644
--- a/kernel/dnbd.h
+++ b/kernel/dnbd.h
@@ -1,9 +1,14 @@
#ifndef LINUX_DNBD_H
#define LINUX_DNBD_H 1
+#include <linux/version.h>
#include <linux/completion.h>
#include <linux/in.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/blkdev.h>
#include <linux/rbtree.h>
#include <linux/jiffies.h>