3a13036
--- oiio-Release-1.1.3/src/include/thread.h.orig	2013-04-01 00:27:21.337292586 +0100
3a13036
+++ oiio-Release-1.1.3/src/include/thread.h	2013-04-01 00:30:08.910886481 +0100
3a13036
@@ -326,7 +326,11 @@
3a13036
     __TBB_Pause(delay);
3a13036
 #elif defined(__GNUC__)
3a13036
     for (int i = 0; i < delay; ++i) {
3a13036
+#if defined __arm__
3a13036
+        __asm__ __volatile__("NOP;");
3a13036
+#else 
3a13036
         __asm__ __volatile__("pause;");
3a13036
+#endif 
3a13036
     }
3a13036
 #elif defined(_MSC_VER)
3a13036
     for (int i = 0; i < delay; ++i) {
3a13036
@@ -441,7 +445,11 @@
3a13036
 
3a13036
     // Disallow copy construction by making private and unimplemented.
3a13036
     atomic (atomic const &);
3a13036
+#if defined __arm__
3a13036
+} __attribute__((aligned(8)));
3a13036
+#else 
3a13036
 };
3a13036
+#endif 
3a13036
 
3a13036
 
3a13036
 #endif /* ! USE_TBB */