From: Merlijn Wajer Date: Sat, 13 Dec 2014 14:08:43 +0000 (+0100) Subject: btrfs-progs: disable backtrace and define __always_inline X-Git-Tag: upstream/4.16.1~2513 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c2691f807ddd2c6b261c5707f6838a45d9275390;p=platform%2Fupstream%2Fbtrfs-progs.git 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 --- diff --git a/kerncompat.h b/kerncompat.h index 5c1cca9..7397274 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