mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-05 20:31:58 +00:00
btrfs-progs: restore backtrace functionality on glibc
Originally broke in commit c2691f807d
__glibc__ should have been __GLIBC__
We also include features.h ; although most includes (at least stdlib.h)
typically already include it -- at least on glibc, where it matters.
Signed-off-by: Merlijn Wajer <merlijn@wizzup.org>
Reported-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
3b7a87d795
commit
54498f9a14
@ -30,7 +30,9 @@
|
||||
#include <linux/types.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifndef __glibc__
|
||||
#include <features.h>
|
||||
|
||||
#ifndef __GLIBC__
|
||||
#define BTRFS_DISABLE_BACKTRACE
|
||||
#define __always_inline __inline __attribute__ ((__always_inline__))
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user