* Re: [Drbd-dev] [PATCH] Support use of HAVE_LINUX_BYTEORDER_SWABB_H for kernel versions older than 2.6.29
[not found] <1241687771-28759-1-git-send-email-mika@grml.org>
@ 2009-05-07 11:14 ` Lars Ellenberg
0 siblings, 0 replies; only message in thread
From: Lars Ellenberg @ 2009-05-07 11:14 UTC (permalink / raw)
To: drbd-dev
On Thu, May 07, 2009 at 11:16:11AM +0200, Michael Prokop wrote:
>
> Signed-off-by: Michael Prokop <mika@grml.org>
>
> diff --git a/drbd/linux/drbd_config.h b/drbd/linux/drbd_config.h
> index 4d323f7..ac14997 100644
> --- a/drbd/linux/drbd_config.h
> +++ b/drbd/linux/drbd_config.h
> @@ -74,7 +74,10 @@ extern const char *drbd_buildtag(void);
> #define HAVE_LINUX_SCATTERLIST_H
>
> /* 2.6.29 and up no longer have swabb.h */
> -//#define HAVE_LINUX_BYTEORDER_SWABB_H
> +#include <linux/version.h>
> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
> +#define HAVE_LINUX_BYTEORDER_SWABB_H
> +#endif
>
> /* Some vendor kernels < 2.6.7 might define msleep in one or
> * another way .. */
Thanks. But unneccessary.
For the other settings, scripts/adjust_drbd_config_h.sh has to be run
anyways, which also takes care of this setting.
--
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
^ permalink raw reply [flat|nested] only message in thread