diff options
Diffstat (limited to 'kernel/net.h')
-rw-r--r-- | kernel/net.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/net.h b/kernel/net.h index 8fad623..989f430 100644 --- a/kernel/net.h +++ b/kernel/net.h @@ -1,8 +1,13 @@ #ifndef LINUX_DNBD_NET_H #define LINUX_DNBD_NET_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/param.h> #include <linux/jiffies.h> |