summaryrefslogtreecommitdiffstats
path: root/shlibs/uuid/src/gen_uuid.c
diff options
context:
space:
mode:
Diffstat (limited to 'shlibs/uuid/src/gen_uuid.c')
-rw-r--r--shlibs/uuid/src/gen_uuid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shlibs/uuid/src/gen_uuid.c b/shlibs/uuid/src/gen_uuid.c
index 8bb29f38d..5434b523e 100644
--- a/shlibs/uuid/src/gen_uuid.c
+++ b/shlibs/uuid/src/gen_uuid.c
@@ -98,8 +98,8 @@
#define rand() random()
#endif
-#ifdef TLS
-#define THREAD_LOCAL static TLS
+#ifdef HAVE_TLS
+#define THREAD_LOCAL static __thread
#else
#define THREAD_LOCAL static
#endif
@@ -589,7 +589,7 @@ void uuid__generate_time(uuid_t out, int *num)
void uuid_generate_time(uuid_t out)
{
-#ifdef TLS
+#ifdef HAVE_TLS
THREAD_LOCAL int num = 0;
THREAD_LOCAL struct uuid uu;
THREAD_LOCAL time_t last_time = 0;