summaryrefslogtreecommitdiff
path: root/pkg/alsa-lib/config.h
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-07-05 04:42:52 -0700
committerMichael Forney <mforney@mforney.org>2019-07-06 01:24:36 -0700
commita87a386e3a5ef715fc65affe9dfa9eae09d13270 (patch)
treeeb5a3d49c04c05ca01642e595bfee764e5138cd1 /pkg/alsa-lib/config.h
parentad2697b3e770cf8c1ba4ad79e49a713bd93b6d28 (diff)
alsa-lib: Detect whether TLS is available
Diffstat (limited to 'pkg/alsa-lib/config.h')
-rw-r--r--pkg/alsa-lib/config.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/alsa-lib/config.h b/pkg/alsa-lib/config.h
index 50b3568b..bf340d4d 100644
--- a/pkg/alsa-lib/config.h
+++ b/pkg/alsa-lib/config.h
@@ -40,7 +40,10 @@
#define HAVE_UNISTD_H 1
#define HAVE_USELOCALE 1
/* #undef HAVE_WORDEXP */
-#define HAVE___THREAD 1
+#ifdef HAVE__THREAD_LOCAL
+# define HAVE___THREAD 1
+# define __thread _Thread_local
+#endif
#define LT_OBJDIR ".libs/"
/* #undef NDEBUG */
#define PACKAGE "alsa-lib"