diff options
Diffstat (limited to 'main/drbd/bits_per_long.patch')
-rw-r--r-- | main/drbd/bits_per_long.patch | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/main/drbd/bits_per_long.patch b/main/drbd/bits_per_long.patch deleted file mode 100644 index 7b094817a4..0000000000 --- a/main/drbd/bits_per_long.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- ./user/drbd_endian.h.orig -+++ ./user/drbd_endian.h -@@ -13,9 +13,16 @@ - - #include <stdint.h> - #include <endian.h> -+#include <limits.h> - - #ifndef BITS_PER_LONG --# define BITS_PER_LONG __WORDSIZE -+# ifdef __WORDSIZE -+# define BITS_PER_LONG __WORDSIZE -+# elif ULONG_MAX == 0xffffffffffffffff -+# define BITS_PER_LONG 64 -+# elif ULONG_MAX == 0xffffffff -+# define BITS_PER_LONG 32 -+# endif - #endif - - /* linux/byteorder/swab.h */ |