summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel/xpp/xpd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/xpp/xpd.h b/kernel/xpp/xpd.h
index c0bfcc0..7f85890 100644
--- a/kernel/xpp/xpd.h
+++ b/kernel/xpp/xpd.h
@@ -30,7 +30,11 @@
#include <linux/kernel.h>
#include <linux/device.h>
#include <asm/atomic.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26)
+#include <linux/semaphore.h>
+#else
#include <asm/semaphore.h>
+#endif
#include <linux/moduleparam.h>
#ifdef XPP_DEBUGFS
#ifndef CONFIG_DEBUG_FS