diff --git a/kerncompat.h b/kerncompat.h index 9fdc58e2..8dc5a52c 100644 --- a/kerncompat.h +++ b/kerncompat.h @@ -32,7 +32,11 @@ #include -#ifndef __GLIBC__ +/* + * Glibc supports backtrace, some other libc implementations don't but need to + * be more careful detecting proper glibc. + */ +#if !defined(__GLIBC__) || defined(__UCLIBC__) #ifndef BTRFS_DISABLE_BACKTRACE #define BTRFS_DISABLE_BACKTRACE #endif