Index: head/graphics/alembic/files/patch-lib_Alembic_AbcCoreOgawa_CMakeLists.txt =================================================================== --- head/graphics/alembic/files/patch-lib_Alembic_AbcCoreOgawa_CMakeLists.txt (nonexistent) +++ head/graphics/alembic/files/patch-lib_Alembic_AbcCoreOgawa_CMakeLists.txt (revision 401707) @@ -0,0 +1,9 @@ +--- lib/Alembic/AbcCoreOgawa/CMakeLists.txt.orig 2015-01-15 18:28:49 UTC ++++ lib/Alembic/AbcCoreOgawa/CMakeLists.txt +@@ -100,3 +100,6 @@ IF( NOT ALEMBIC_NO_TESTS ) + ADD_SUBDIRECTORY( Tests ) + ENDIF() + ++IF( CMAKE_COMPILER_IS_GNUCXX ) ++ TARGET_LINK_LIBRARIES( AlembicAbcCoreOgawa atomic ) ++ENDIF() Property changes on: head/graphics/alembic/files/patch-lib_Alembic_AbcCoreOgawa_CMakeLists.txt ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/graphics/alembic/files/patch-lib_Alembic_AbcCoreOgawa_StreamManager.cpp =================================================================== --- head/graphics/alembic/files/patch-lib_Alembic_AbcCoreOgawa_StreamManager.cpp (nonexistent) +++ head/graphics/alembic/files/patch-lib_Alembic_AbcCoreOgawa_StreamManager.cpp (revision 401707) @@ -0,0 +1,22 @@ +--- lib/Alembic/AbcCoreOgawa/StreamManager.cpp.orig 2015-01-15 18:28:49 UTC ++++ lib/Alembic/AbcCoreOgawa/StreamManager.cpp +@@ -111,7 +111,8 @@ StreamIDPtr StreamManager::get() + + newVal = oldVal & ~( 1 << (val - 1) ); + } +- while ( !__sync_bool_compare_and_swap( &m_streams, oldVal, newVal ) ); ++ while ( !__atomic_compare_exchange_n( &m_streams, &oldVal, newVal, ++ false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST ) ); + + return StreamIDPtr( new StreamID( this, ( std::size_t ) val - 1 ) ); + } +@@ -140,7 +141,8 @@ void StreamManager::put( std::size_t iSt + newVal = oldVal | ( 1 << iStreamID ); + + } +- while ( !__sync_bool_compare_and_swap( &m_streams, oldVal, newVal ) ); ++ while ( !__atomic_compare_exchange_n( &m_streams, &oldVal, newVal, ++ false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST ) ); + } + + #else Property changes on: head/graphics/alembic/files/patch-lib_Alembic_AbcCoreOgawa_StreamManager.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property