From c2691f807ddd2c6b261c5707f6838a45d9275390 Mon Sep 17 00:00:00 2001 From: Merlijn Wajer Date: Sat, 13 Dec 2014 15:08:43 +0100 Subject: btrfs-progs: disable backtrace and define __always_inline Disable backtrace and define __always_inline when glibc is not used as libc. This, together with some header changes allows btrfs-progs to compile with musl-libc. Signed-off-by: Merlijn Wajer Signed-off-by: David Sterba --- kerncompat.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'kerncompat.h') diff --git a/kerncompat.h b/kerncompat.h index 5c1cca9e..73972748 100644 --- a/kerncompat.h +++ b/kerncompat.h @@ -29,6 +29,12 @@ #include #include #include + +#ifndef __glibc__ +#define BTRFS_DISABLE_BACKTRACE +#define __always_inline __inline __attribute__ ((__always_inline__)) +#endif + #ifndef BTRFS_DISABLE_BACKTRACE #include #endif -- cgit v1.2.3