folly: unconditionally include boost mutex definitions on macOS
authorWez Furlong <wez@fb.com>
Tue, 19 Jul 2016 16:45:24 +0000 (09:45 -0700)
committerFacebook Github Bot 5 <facebook-github-bot-5-bot@fb.com>
Tue, 19 Jul 2016 16:53:29 +0000 (09:53 -0700)
Summary:
macOS doesn't have timedwait functionality and this header file was
gating including the boost headers on that check which caused dependent modules
to fail to compile because `boost::mutex` and `boost::recursive_mutex` were not
known to the compiler.

Reviewed By: yfeldblum

Differential Revision: D3585470

fbshipit-source-id: 7f8d9603e95ce01328103c7c6ac0bc75a35ddf4d

folly/LockTraitsBoost.h

index 914efd58e6598f64c61a458bc06f777e0abc9641..459a5fe8c9928f0314ad264ca81c1f2cb6c47a9e 100644 (file)
  */
 #pragma once
 
+#include <boost/thread.hpp>
 #include <folly/LockTraits.h>
 
 #if FOLLY_LOCK_TRAITS_HAVE_TIMED_MUTEXES
 
-#include <boost/thread.hpp>
 
 namespace folly {