From: Christopher Dykes Date: Thu, 13 Apr 2017 20:57:26 +0000 (-0700) Subject: Switch includes of PThread to the portability header X-Git-Tag: v2017.04.17.00~20 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=62134365a855a63a9dc1b8317ce44a4dd8430859;p=folly.git 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 --- 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