Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
* [Drbd-dev] Another compatibility issue
@ 2009-06-19 15:25 Ante Karamatić
  2009-06-19 16:06 ` Lars Ellenberg
  0 siblings, 1 reply; 2+ messages in thread
From: Ante Karamatić @ 2009-06-19 15:25 UTC (permalink / raw)
  To: drbd-dev

[-- Attachment #1: Type: text/plain, Size: 197 bytes --]

Hi again

Here's another issue I'm having. linux/drbd_config.h is right saying:

 /* 2.6.29 and up no longer have swabb.h */

But, then doesn't do anything about it. So, proposed diff is attached.

[-- Attachment #2: swabb.diff --]
[-- Type: text/x-patch, Size: 476 bytes --]

--- drbd8-8.3.2~/drbd/linux/drbd_config.h       2009-06-19 16:11:44.000000000 +0200
+++ drbd8-8.3.2/drbd/linux/drbd_config.h        2009-06-19 17:19:00.000000000 +0200
@@ -74,7 +74,11 @@
 #define HAVE_LINUX_SCATTERLIST_H

 /* 2.6.29 and up no longer have 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 .. */

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-19 16:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-19 15:25 [Drbd-dev] Another compatibility issue Ante Karamatić
2009-06-19 16:06 ` Lars Ellenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox