summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-block/nbd/files/nbd-2.8.7-headers.patch')
-rw-r--r--sys-block/nbd/files/nbd-2.8.7-headers.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/sys-block/nbd/files/nbd-2.8.7-headers.patch b/sys-block/nbd/files/nbd-2.8.7-headers.patch
new file mode 100644
index 000000000000..5d17d0ac84cf
--- /dev/null
+++ b/sys-block/nbd/files/nbd-2.8.7-headers.patch
@@ -0,0 +1,39 @@
+kernel headers fixes this so no point in hacking the crap out of userspace
+
+--- configure
++++ configure
+@@ -7743,10 +7743,6 @@
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+-#define u32 int
+-#define u64 int
+-#define __be32 int
+-#define __be64 int
+ #include "nbd.h"
+
+ int
+@@ -7803,10 +7803,6 @@
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+-#define u32 int
+-#define u64 int
+-#define __be32 int
+-#define __be64 int
+ #include <linux/nbd.h>
+
+ int
+--- cliserv.h
++++ cliserv.h
+@@ -15,10 +15,6 @@
+ #error I need at least some 64-bit type
+ #endif
+
+-/* 2.6.18 and above use __be* rather than u* */
+-#define __be32 u32
+-#define __be64 u64
+-
+ #ifdef NBD_H_LOCAL
+ #include "nbd.h"
+ #else