x64 detection missing an include
authorElizabeth Smith <elizabeths@fb.com>
Fri, 18 Apr 2014 16:28:00 +0000 (09:28 -0700)
committerSara Golemon <sgolemon@fb.com>
Fri, 18 Apr 2014 19:10:26 +0000 (12:10 -0700)
Summary: rwspinlock.h was missing the portability.h header which made the x64 detection go wonky, but only shows up when used with isolated rwspinlock use

Test Plan: fbmake runtests

Reviewed By: andrei.alexandrescu@fb.com

FB internal diff: D1284387

Blame Revision: D1282140

folly/RWSpinLock.h

index c52f7e8b8bfbafd88920936fb5a9720cc8455fee..dbef63885531a2f728f7418e6b6e7a32efa34259 100644 (file)
@@ -106,6 +106,8 @@ pthread_rwlock_t Read        728698     24us       101ns     7.28ms     194us
 
 */
 
+#include "folly/Portability.h"
+
 #if defined(__GNUC__) && !defined(__clang__) && \
   (defined(__i386) || FOLLY_X64 || \
    defined(ARCH_K8))