Fix copyright lines
[folly.git] / folly / experimental / io / HugePages.h
index cd0e617e794dcf9e3502ed080717fd8bbc595c78..07fd8de6e99a72dc14bbf45af9291260a9d0190a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2012-present Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * limitations under the License.
  */
 
-#ifndef FOLLY_IO_HUGEPAGES_H_
-#define FOLLY_IO_HUGEPAGES_H_
+#pragma once
 
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <cstddef>
 #include <string>
-#include <unistd.h>
 #include <utility>
 #include <vector>
 
 
 #include <folly/Range.h>
 #include <folly/experimental/io/FsUtil.h>
+#include <folly/portability/Unistd.h>
 
 namespace folly {
 
 struct HugePageSize : private boost::totally_ordered<HugePageSize> {
-  explicit HugePageSize(size_t s) : size(s) { }
+  explicit HugePageSize(size_t s) : size(s) {}
 
   fs::path filePath(const fs::path& relpath) const {
     return mountPoint / relpath;
@@ -78,6 +77,4 @@ const HugePageSize* getHugePageSize(size_t size = 0);
  */
 const HugePageSize* getHugePageSizeForDevice(dev_t device);
 
-}  // namespace folly
-
-#endif /* FOLLY_IO_HUGEPAGES_H_ */
+} // namespace folly