Skip to content

Commit

Permalink
Switch uses of <sys/resource.h> to <folly/portability/SysResource.h>
Browse files Browse the repository at this point in the history
Summary: Diff #4 of 14.

Reviewed By: mzlee

Differential Revision: D3181101

fbshipit-source-id: d0db67ae19ee71e6a251c299ef672baead3ab9d9
  • Loading branch information
Orvid authored and Facebook Github Bot 4 committed May 30, 2016
1 parent bff57bd commit b8f1474
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion thrift/lib/cpp/concurrency/PosixThreadFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@

#include <assert.h>
#include <pthread.h>
#include <sys/resource.h>

#include <iostream>

#include <folly/String.h>
#include <folly/portability/SysResource.h>
#include <glog/logging.h>

namespace apache { namespace thrift { namespace concurrency {
Expand Down
2 changes: 1 addition & 1 deletion thrift/lib/cpp/concurrency/test/ThreadManagerTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* limitations under the License.
*/

#include <sys/resource.h>
#include <numa.h>

#include <chrono>
Expand All @@ -25,6 +24,7 @@
#include <thread>

#include <folly/Synchronized.h>
#include <folly/portability/SysResource.h>
#include <folly/portability/SysTime.h>
#include <gtest/gtest.h>
#include <thrift/lib/cpp/concurrency/FunctionRunner.h>
Expand Down
2 changes: 1 addition & 1 deletion thrift/lib/cpp/server/TServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

#include <thrift/lib/cpp/server/TServer.h>

#include <sys/resource.h>
#include <unistd.h>

#include <folly/portability/SysResource.h>
#include <folly/portability/SysTime.h>

namespace apache { namespace thrift { namespace server {
Expand Down

0 comments on commit b8f1474

Please sign in to comment.