summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMerlijn Wajer <merlijn@wizzup.org>2015-01-14 13:13:15 +0100
committerDavid Sterba <dsterba@suse.cz>2015-01-14 15:12:05 +0100
commit54498f9a14ea34f2c9a1ce82d412fca7a05b05fc (patch)
treec77ba2ac2d880fa4ff3a21a14f66442260e256a5
parent3b7a87d7955a56f4447cc0473f543c6050cba877 (diff)
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 <merlijn@wizzup.org> Reported-by: Josef Bacik <jbacik@fb.com> Signed-off-by: David Sterba <dsterba@suse.cz>
-rw-r--r--kerncompat.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/kerncompat.h b/kerncompat.h
index 73972748..314ea023 100644
--- a/kerncompat.h
+++ b/kerncompat.h
@@ -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