commit | da18b9db7b26080b899985191c6344d79f5497b5 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Thu Jan 25 16:10:16 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Jan 25 17:52:57 2018 +0100 |
tree | c22f98682ca772607dfebf41f5148e10974ee170 | |
parent | 13b007d583924d19d692268c2f51a2fc2b46fd0c [diff] |
MINOR: threads: Use __decl_hathreads instead of #ifdef/#endif A #ifdef/#endif on USE_THREAD was added in the commit 0048dd04 ("MINOR: threads: Fix build when we're not compiling with threads.") to conditionally define the start_lock variable, because HA_SPINLOCK_T is only defined when HAProxy is compiled with threads. If fact, to do that, we should use the macro __decl_hathreads instead. If commit 0048dd04 is backported in 1.8, this one can also be backported.