Switch uses of <sys/resource.h> to <folly/portability/SysResource.h>
authorChristopher Dykes <cdykes@fb.com>
Mon, 30 May 2016 23:05:12 +0000 (16:05 -0700)
committerFacebook Github Bot 6 <facebook-github-bot-6-bot@fb.com>
Mon, 30 May 2016 23:09:19 +0000 (16:09 -0700)
Summary: Diff #4 of 14.

Reviewed By: mzlee

Differential Revision: D3181101

fbshipit-source-id: d0db67ae19ee71e6a251c299ef672baead3ab9d9

folly/SharedMutex.h
folly/test/MPMCQueueTest.cpp

index 0bb62037bf22549912aaf47089406fca47a309ac..15dc91e6b589378ebb6d20991106156000bfe955 100644 (file)
@@ -26,7 +26,7 @@
 #include <folly/detail/CacheLocality.h>
 #include <folly/detail/Futex.h>
 #include <folly/portability/Asm.h>
-#include <sys/resource.h>
+#include <folly/portability/SysResource.h>
 
 // SharedMutex is a reader-writer lock.  It is small, very fast, scalable
 // on multi-core, and suitable for use when readers or writers may block.
index d42f402ab0f96d69e27ef5bc59deeabdfb233714..93c7d3d51283ed27fa2534ae0bfdcaba82e322bc 100644 (file)
@@ -17,6 +17,7 @@
 #include <folly/MPMCQueue.h>
 #include <folly/Format.h>
 #include <folly/Memory.h>
+#include <folly/portability/SysResource.h>
 #include <folly/portability/SysTime.h>
 #include <folly/test/DeterministicSchedule.h>
 
@@ -26,7 +27,6 @@
 #include <thread>
 #include <utility>
 #include <unistd.h>
-#include <sys/resource.h>
 
 #include <gtest/gtest.h>