REORG: include: move THREAD_LOCAL and __decl_thread() to compiler.h
Since these are used as type attributes or conditional clauses, they
are used about everywhere and should not require a dependency on
thread.h. Moving them to compiler.h along with other similar statements
like ALIGN() etc looks more logical; this way they become part of the
base API. This allowed to remove thread-t.h from ~12 files, one was
found to only require thread-t and not thread and dict.c was found to
require thread.h.
diff --git a/src/dict.c b/src/dict.c
index 50fe1eb..903f073 100644
--- a/src/dict.c
+++ b/src/dict.c
@@ -3,6 +3,7 @@
#include <import/eb32tree.h>
#include <import/ebistree.h>
#include <haproxy/dict.h>
+#include <haproxy/thread.h>
struct dict *new_dict(const char *name)
{
diff --git a/src/ev_epoll.c b/src/ev_epoll.c
index b79db74..8096988 100644
--- a/src/ev_epoll.c
+++ b/src/ev_epoll.c
@@ -17,7 +17,6 @@
#include <haproxy/api.h>
#include <haproxy/global.h>
#include <haproxy/signal.h>
-#include <haproxy/thread-t.h>
#include <haproxy/tools.h>
#include <haproxy/ticks.h>
#include <haproxy/time.h>
diff --git a/src/ev_evports.c b/src/ev_evports.c
index 81cbe51..cbb1bc8 100644
--- a/src/ev_evports.c
+++ b/src/ev_evports.c
@@ -20,7 +20,6 @@
#include <haproxy/api.h>
#include <haproxy/signal.h>
-#include <haproxy/thread-t.h>
#include <haproxy/ticks.h>
#include <haproxy/time.h>
diff --git a/src/ev_kqueue.c b/src/ev_kqueue.c
index e1d74d6..c699fe2 100644
--- a/src/ev_kqueue.c
+++ b/src/ev_kqueue.c
@@ -19,7 +19,6 @@
#include <haproxy/api.h>
#include <haproxy/signal.h>
-#include <haproxy/thread-t.h>
#include <haproxy/ticks.h>
#include <haproxy/time.h>
diff --git a/src/ev_poll.c b/src/ev_poll.c
index 8781e6c..53ae81f 100644
--- a/src/ev_poll.c
+++ b/src/ev_poll.c
@@ -18,7 +18,6 @@
#include <sys/types.h>
#include <haproxy/api.h>
-#include <haproxy/thread-t.h>
#include <haproxy/ticks.h>
#include <haproxy/time.h>
diff --git a/src/ev_select.c b/src/ev_select.c
index cee5e8e..bf69f35 100644
--- a/src/ev_select.c
+++ b/src/ev_select.c
@@ -15,7 +15,6 @@
#include <sys/types.h>
#include <haproxy/api.h>
-#include <haproxy/thread-t.h>
#include <haproxy/ticks.h>
#include <haproxy/time.h>
diff --git a/src/time.c b/src/time.c
index f81ffff..9c99fd5 100644
--- a/src/time.c
+++ b/src/time.c
@@ -16,7 +16,6 @@
#include <haproxy/api.h>
#include <haproxy/tools.h>
#include <haproxy/time.h>
-#include <haproxy/thread-t.h>
THREAD_LOCAL unsigned int ms_left_scaled; /* milliseconds left for current second (0..2^32-1) */
THREAD_LOCAL unsigned int now_ms; /* internal date in milliseconds (may wrap) */