summaryrefslogtreecommitdiffstats
path: root/kernel/dnbd2.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/dnbd2.h')
-rw-r--r--kernel/dnbd2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/dnbd2.h b/kernel/dnbd2.h
index c49c9b9..2bf0f76 100644
--- a/kernel/dnbd2.h
+++ b/kernel/dnbd2.h
@@ -12,7 +12,11 @@
#include <linux/inet.h>
#include <linux/in.h>
#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
+#include <linux/semaphore.h>
+#else
#include <asm/semaphore.h>
+#endif
#include <net/sock.h>
#include "../include/dnbd2.h"