Fix the CMake build on Windows when using PThreads
[folly.git] / folly / ThreadName.cpp
index acd6163..3e2d9aa 100644 (file)
@@ -58,7 +58,7 @@ bool canSetOtherThreadName() {
 }
 
 bool setThreadName(std::thread::id tid, StringPiece name) {
-#if !FOLLY_HAVE_PTHREAD
+#if !FOLLY_HAVE_PTHREAD || _WIN32
   return false;
 #else
   static_assert(