Make Observer stress test pass a stress run
[folly.git] / folly / SmallLocks.h
index d5fc501a36d25603777ec14061125fd3e7295a1b..fe447563f809fec36187e8f760072a53a5f2a4f8 100644 (file)
@@ -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
  * @author Jordan DeLong <delong.j@fb.com>
  */
 
+#include <folly/MicroLock.h>
 #include <folly/MicroSpinLock.h>
-#include <folly/PicoSpinLock.h>
 
+#include <folly/Portability.h>
+#if FOLLY_X64 || FOLLY_A64 || FOLLY_PPC64
+#include <folly/PicoSpinLock.h>
 #endif