summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kerncompat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kerncompat.h b/kerncompat.h
index 5c1cca9e..73972748 100644
--- a/kerncompat.h
+++ b/kerncompat.h
@@ -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