diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-12-27 13:46:42 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-12-27 13:47:10 +0000 |
commit | 40ae1a200ead6ed5a5ea9f3cd24c57d663b11c4b (patch) | |
tree | cef5877f4e9438c1f355f58531783348a9412f10 /main/btrfs-progs/includes.patch | |
parent | c78919586e9f9fe1969f153a65b70e195d7e3c41 (diff) | |
download | aports-40ae1a200ead6ed5a5ea9f3cd24c57d663b11c4b.tar.bz2 aports-40ae1a200ead6ed5a5ea9f3cd24c57d663b11c4b.tar.xz |
main/btrfs-progs: build fix for musl
Diffstat (limited to 'main/btrfs-progs/includes.patch')
-rw-r--r-- | main/btrfs-progs/includes.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/main/btrfs-progs/includes.patch b/main/btrfs-progs/includes.patch new file mode 100644 index 0000000000..ae69dae492 --- /dev/null +++ b/main/btrfs-progs/includes.patch @@ -0,0 +1,26 @@ +diff --git a/bitops.h b/bitops.h +index 323c571..7f30b06 100644 +--- a/bitops.h ++++ b/bitops.h +@@ -65,6 +65,9 @@ static inline unsigned long hweight_long(unsigned long w) + } + + #define BITOP_WORD(nr) ((nr) / BITS_PER_LONG) ++#ifndef __always_inline ++#define __always_inline inline __attribute__((always_inline)) ++#endif + + /** + * __ffs - find first bit in word. +diff --git a/kerncompat.h b/kerncompat.h +index 1fc2b34..e7d3ca5 100644 +--- a/kerncompat.h ++++ b/kerncompat.h +@@ -28,6 +28,7 @@ + #include <assert.h> + #include <stddef.h> + #include <linux/types.h> ++#include <linux/limits.h> + + #ifndef READ + #define READ 0 |