diff options
| author | Michael Forney <mforney@mforney.org> | 2019-07-10 19:07:56 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-07-10 19:07:56 -0700 |
| commit | 1df5c5b23431f7d64ef3c623f57a6900cb72963f (patch) | |
| tree | 14b6756e6b207c0edf43f4d60c8b95c7f7f408bc /pkg | |
| parent | e8de3964688787b9d6b14ce173a254b0fc2e38ad (diff) | |
pixman: Probe for TLS
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/pixman/config.h | 4 | ||||
| -rw-r--r-- | pkg/pixman/gen.lua | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/pkg/pixman/config.h b/pkg/pixman/config.h index 4135d6e1..c67e57d6 100644 --- 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 index 99583ff2..caf3660f 100644 --- 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', }) |
