From 03922f3fb9d3020678299bccc35b44685708d103 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sun, 28 May 2017 20:21:09 +0200 Subject: [PATCH] Fix 'missing libc-version.h' build error (uClibc/x86[_64]) (fix commit 3d34255) uClibc defines __GLIBC__ but does not contain libc-version.h file. * include/private/gcconfig.h [(I386 || X86_64) && LINUX && __GLIBC__] (GLIBC_2_19_TSX_BUG): Do not define (and do not include gnu/libc-version.h) if __UCLIBC__. --- include/private/gcconfig.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 77bc00af..00f4713a 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -1432,7 +1432,7 @@ # define GC_PREFETCH_FOR_WRITE(x) \ __asm__ __volatile__ ("prefetchw %0" : : "m"(*(char *)(x))) # endif -# if defined(__GLIBC__) +# if defined(__GLIBC__) && !defined(__UCLIBC__) /* Workaround lock elision implementation for some glibc. */ # define GLIBC_2_19_TSX_BUG # include /* for gnu_get_libc_version() */ @@ -2445,7 +2445,7 @@ /* FIXME: This seems to be fixed in GLibc v2.14. */ # define GETCONTEXT_FPU_EXCMASK_BUG # endif -# if defined(__GLIBC__) +# if defined(__GLIBC__) && !defined(__UCLIBC__) /* Workaround lock elision implementation for some glibc. */ # define GLIBC_2_19_TSX_BUG # include /* for gnu_get_libc_version() */ -- 2.40.0