Skip to content

Commit

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

Reviewed By: mzlee

Differential Revision: D3110299

fbshipit-source-id: 39e4980df14b0b108b20dbbe57f2c5c6b361ea2e
  • Loading branch information
Orvid authored and Facebook Github Bot 6 committed May 30, 2016
1 parent 64ed63b commit 866e9b2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions folly/AtomicUnorderedMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@
#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>

Expand Down
3 changes: 2 additions & 1 deletion folly/detail/MemoryIdler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@
#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>

Expand Down
4 changes: 3 additions & 1 deletion folly/test/MemoryMappingTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
* 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 {
Expand Down
2 changes: 1 addition & 1 deletion folly/test/RangeTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 866e9b2

Please sign in to comment.