diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-04-03 14:50:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-04-03 14:51:01 +0000 |
commit | 962a60e41301173ba88bba6a74574f1a6dce0ad6 (patch) | |
tree | 0a03dfd6491558cf0dc5abd6d25ca25251ea66ed /main/drbd/bits_per_long.patch | |
parent | adde4d1462dd4c0ac39f7856da3e0659434cb03a (diff) | |
download | aports-962a60e41301173ba88bba6a74574f1a6dce0ad6.tar.bz2 aports-962a60e41301173ba88bba6a74574f1a6dce0ad6.tar.xz |
main/drbd: build fix for musl
Diffstat (limited to 'main/drbd/bits_per_long.patch')
-rw-r--r-- | main/drbd/bits_per_long.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/drbd/bits_per_long.patch b/main/drbd/bits_per_long.patch new file mode 100644 index 000000000..7b094817a --- /dev/null +++ b/main/drbd/bits_per_long.patch @@ -0,0 +1,20 @@ +--- ./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 */ |