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 <merlijn@wizzup.org>
Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
Merlijn Wajer 2014-12-13 15:08:43 +01:00 committed by David Sterba
parent c69854247b
commit c2691f807d

View File

@ -29,6 +29,12 @@
#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