btrfs-progs: disable backtrace and define __always_inline
authorMerlijn Wajer <merlijn@wizzup.org>
Sat, 13 Dec 2014 14:08:43 +0000 (15:08 +0100)
committerDavid Sterba <dsterba@suse.cz>
Thu, 18 Dec 2014 17:28:34 +0000 (18:28 +0100)
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 <merlijn@wizzup.org>
Signed-off-by: David Sterba <dsterba@suse.cz>
kerncompat.h

index 5c1cca9..7397274 100644 (file)
 #include <stddef.h>
 #include <linux/types.h>
 #include <stdint.h>
+
+#ifndef __glibc__
+#define BTRFS_DISABLE_BACKTRACE
+#define __always_inline __inline __attribute__ ((__always_inline__))
+#endif
+
 #ifndef BTRFS_DISABLE_BACKTRACE
 #include <execinfo.h>
 #endif