From: Rosen Penev Date: Mon, 6 May 2019 22:02:47 +0000 (-0700) Subject: fileio: Disable BACKTRACE under uClibc X-Git-Tag: v1.4.1^2~42^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23b5ee12366bd87f736fc520aad7425970f69dc5;p=thirdparty%2Fzstd.git fileio: Disable BACKTRACE under uClibc uClibc does not support BACKTRACE. It also defines __GLIBC__ and minor as both 2. This fixes compilation under such a setup. --- diff --git a/programs/fileio.c b/programs/fileio.c index 6a8ec3a1c..dc8479ab0 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -175,7 +175,7 @@ static void clearHandler(void) #if !defined(BACKTRACE_ENABLE) /* automatic detector : backtrace enabled by default on linux+glibc and osx */ -# if (defined(__linux__) && defined(__GLIBC__)) \ +# if (defined(__linux__) && (defined(__GLIBC__) && !defined(__UCLIBC__))) \ || (defined(__APPLE__) && defined(__MACH__)) # define BACKTRACE_ENABLE 1 # else