--- lib/et/error_message.c
+++ lib/et/error_message.c
@@ -43,6 +43,7 @@
 #include "error_table.h"
 #include "internal.h"
 
+#undef TLS
 #ifdef TLS
 #define THREAD_LOCAL static TLS
 #else
--- lib/uuid/gen_uuid.c
+++ lib/uuid/gen_uuid.c
@@ -100,6 +100,7 @@
 #define rand() 		random()
 #endif
 
+#undef TLS
 #ifdef TLS
 #define THREAD_LOCAL static TLS
 #else
