aboutsummaryrefslogtreecommitdiff
path: root/libbutl/ft/shared_mutex.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/ft/shared_mutex.hxx')
-rw-r--r--libbutl/ft/shared_mutex.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/libbutl/ft/shared_mutex.hxx b/libbutl/ft/shared_mutex.hxx
index 6c6d415..a0346fc 100644
--- a/libbutl/ft/shared_mutex.hxx
+++ b/libbutl/ft/shared_mutex.hxx
@@ -5,8 +5,11 @@
#ifndef LIBBUTL_FT_SHARED_MUTEX_HXX
#define LIBBUTL_FT_SHARED_MUTEX_HXX
-#include <cstddef> // _LIBCPP_VERSION
-#include <shared_mutex>
+#if defined(__clang__)
+# if __has_include(<__config>)
+# include <__config> // _LIBCPP_VERSION
+# endif
+#endif
// __cpp_lib_shared_mutex
//