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>
master
Merlijn Wajer 2015-01-14 13:13:15 +01:00 committed by David Sterba
parent 3b7a87d795
commit 54498f9a14
1 changed files with 3 additions and 1 deletions

View File

@ -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