From 41ab2a892456f4f3e27128a7f9237bc45cc288dd Mon Sep 17 00:00:00 2001 From: orient Date: Tue, 7 May 2019 14:11:35 +0800 Subject: [PATCH] fix static_assert for macro HAVE_THREAD_LOCAL fix static_assert for macro HAVE_THREAD_LOCAL while define DEBUG_LOCKCONTENTION --- src/sync.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sync.cpp b/src/sync.cpp index e7c0a6f9b..c2767b200 100644 --- a/src/sync.cpp +++ b/src/sync.cpp @@ -2,6 +2,10 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. +#if defined(HAVE_CONFIG_H) +#include +#endif + #include #include