Statically allocate futex array
[folly.git] / folly / SmallLocks.h
index b73932b78a094a31bd538ec02dda2a1a7247755c..b0939802180f65a901b03c28cf40d413c9efd1c7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,8 +14,7 @@
  * limitations under the License.
  */
 
-#ifndef FOLLY_SMALLLOCKS_H_
-#define FOLLY_SMALLLOCKS_H_
+#pragma once
 
 /*
  * This header defines a few very small mutex types.  These are useful
@@ -36,6 +35,8 @@
 
 #include <folly/MicroLock.h>
 #include <folly/MicroSpinLock.h>
-#include <folly/PicoSpinLock.h>
 
+#include <folly/Portability.h>
+#if FOLLY_X64 || FOLLY_AARCH64 || FOLLY_PPC64
+#include <folly/PicoSpinLock.h>
 #endif