From 54498f9a14ea34f2c9a1ce82d412fca7a05b05fc Mon Sep 17 00:00:00 2001 From: Merlijn Wajer Date: Wed, 14 Jan 2015 13:13:15 +0100 Subject: btrfs-progs: restore backtrace functionality on glibc Originally broke in commit c2691f807ddd2c6b261c5707f6838a45d9275390 __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 Reported-by: Josef Bacik Signed-off-by: David Sterba --- kerncompat.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kerncompat.h') diff --git a/kerncompat.h b/kerncompat.h index 73972748..314ea023 100644 --- a/kerncompat.h +++ b/kerncompat.h @@ -30,7 +30,9 @@ #include #include -#ifndef __glibc__ +#include + +#ifndef __GLIBC__ #define BTRFS_DISABLE_BACKTRACE #define __always_inline __inline __attribute__ ((__always_inline__)) #endif -- cgit v1.2.3