From 4937526cafa58e4f889b8b5258d537687f0f1e7d Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Wed, 3 Jun 2009 19:08:35 +0000 Subject: Compilation quickfix for DNBD kernel module (to be checked if proper version and proper fix) ... git-svn-id: http://svn.openslx.org/svn/openslx/contrib/dnbd/trunk@2926 95ad53e4-c205-0410-b2fa-d234c58c8868 --- kernel/dnbd.h | 7 ++++++- kernel/net.h | 7 ++++++- kernel/queue.h | 7 ++++++- 3 files changed, 18 insertions(+), 3 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 #include #include -#include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25) + #include +#else + #include +#endif #include #include #include 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 #include -#include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25) + #include +#else + #include +#endif #include #include #include 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 #include -#include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25) + #include +#else + #include +#endif #include #include -- cgit v1.2.3-55-g7522