Switch uses of <sys/mman.h> to <folly/portability/SysMman.h>
authorChristopher Dykes <cdykes@fb.com>
Mon, 30 May 2016 23:05:11 +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 #3 of 14.

Reviewed By: mzlee

Differential Revision: D3110299

fbshipit-source-id: 39e4980df14b0b108b20dbbe57f2c5c6b361ea2e

folly/AtomicUnorderedMap.h
folly/detail/MemoryIdler.cpp
folly/test/MemoryMappingTest.cpp
folly/test/RangeTest.cpp

index 68fc585d1f8e2b7c52d7255aa9134114d0585490..34cdf8598a0d7b35214623e649f873fbd231d61f 100644 (file)
 #include <type_traits>
 #include <stdint.h>
 #include <unistd.h>
-#include <sys/mman.h>
-#include <folly/Likely.h>
+
 #include <folly/Bits.h>
 #include <folly/Conv.h>
+#include <folly/Likely.h>
 #include <folly/Random.h>
 #include <folly/detail/AtomicUnorderedMapUtils.h>
+#include <folly/portability/SysMman.h>
+
 #include <boost/type_traits/has_trivial_destructor.hpp>
 #include <limits>
 
index bb9691b97fa36ac2b9396cd24c153d88b5cfeac9..bb6b6e44d2cd8b08ba5ef49725b63378f0f03f08 100644 (file)
 #include <folly/Portability.h>
 #include <folly/ScopeGuard.h>
 #include <folly/detail/CacheLocality.h>
+#include <folly/portability/SysMman.h>
+
 #include <limits.h>
 #include <pthread.h>
 #include <stdio.h>
 #include <string.h>
-#include <sys/mman.h>
 #include <unistd.h>
 #include <utility>
 
index 7c62ff5ad82006f76d6fc70e95f66d68c08a685d..84676f0e17e44d6dc3b1f68fc266e7e6916c0dd8 100644 (file)
  * limitations under the License.
  */
 
-#include <sys/mman.h>
 #include <cstdlib>
+
 #include <folly/FileUtil.h>
 #include <folly/MemoryMapping.h>
+#include <folly/portability/SysMman.h>
+
 #include <gtest/gtest.h>
 
 namespace folly {
index 49830d7ce236e6d3f7f401ad5b19b2b74351f4bc..8c98ee48151ced68b49439a774268b362c711f64 100644 (file)
@@ -20,8 +20,8 @@
 #include <folly/Range.h>
 
 #include <folly/portability/Memory.h>
+#include <folly/portability/SysMman.h>
 
-#include <sys/mman.h>
 #include <array>
 #include <iterator>
 #include <limits>