From 62134365a855a63a9dc1b8317ce44a4dd8430859 Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Thu, 13 Apr 2017 13:57:26 -0700 Subject: [PATCH] Switch includes of PThread to the portability header Summary: As part of the work towards getting Folly compiling without PThread, it needs to be treated as a non-portable include. This switches the includes not already covered by other diffs. Reviewed By: yfeldblum Differential Revision: D4882777 fbshipit-source-id: d9521564c814f9bcff2fcb358cbb89b3777c327d --- folly/ThreadId.h | 2 +- folly/ThreadName.h | 3 +-- folly/detail/MemoryIdler.cpp | 2 +- folly/detail/ThreadLocalDetail.h | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/folly/ThreadId.h b/folly/ThreadId.h index db4decdb..06d4bb14 100644 --- a/folly/ThreadId.h +++ b/folly/ThreadId.h @@ -18,7 +18,7 @@ #include -#include +#include namespace folly { diff --git a/folly/ThreadName.h b/folly/ThreadName.h index 09508856..0a5e5998 100644 --- a/folly/ThreadName.h +++ b/folly/ThreadName.h @@ -19,10 +19,9 @@ #include #include -#include - #include #include +#include namespace folly { diff --git a/folly/detail/MemoryIdler.cpp b/folly/detail/MemoryIdler.cpp index 129debdd..608e244b 100644 --- a/folly/detail/MemoryIdler.cpp +++ b/folly/detail/MemoryIdler.cpp @@ -22,11 +22,11 @@ #include #include #include +#include #include #include #include -#include #include #include #include diff --git a/folly/detail/ThreadLocalDetail.h b/folly/detail/ThreadLocalDetail.h index dcfc058a..9c863851 100644 --- a/folly/detail/ThreadLocalDetail.h +++ b/folly/detail/ThreadLocalDetail.h @@ -17,7 +17,6 @@ #pragma once #include -#include #include #include @@ -34,6 +33,7 @@ #include #include #include +#include #include -- 2.34.1