logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: 1df5c5b23431f7d64ef3c623f57a6900cb72963f
parent e8de3964688787b9d6b14ce173a254b0fc2e38ad
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 10 Jul 2019 19:07:56 -0700

pixman: Probe for TLS

Diffstat:

Mpkg/pixman/config.h4+++-
Mpkg/pixman/gen.lua1+
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/pkg/pixman/config.h b/pkg/pixman/config.h @@ -41,7 +41,9 @@ /* #undef PIXMAN_TIMERS */ #define SIZEOF_LONG 8 #define STDC_HEADERS 1 -#define TLS __thread +#ifdef HAVE__THREAD_LOCAL +# define TLS _Thread_local +#endif #define TOOLCHAIN_SUPPORTS_ATTRIBUTE_CONSTRUCTOR /**/ /* #undef USE_ARM_IWMMXT */ /* #undef USE_ARM_NEON */ diff --git a/pkg/pixman/gen.lua b/pkg/pixman/gen.lua @@ -5,6 +5,7 @@ cflags{ } build('cat', '$outdir/config.h', { + '$builddir/probe/HAVE__THREAD_LOCAL', '$builddir/probe/HAVE___BUILTIN_CLZ', '$dir/config.h', })