openbsd-ports/graphics/openimageio/patches/patch-src_include_thread_h
sthen b5108d586d In openimageio, only use GCC 64-bit atomics on amd64. Other arch use TBB
as was already done for FreeBSD. Fixes build for i386. ok pascal@
2012-05-16 12:09:35 +00:00

13 lines
483 B
Plaintext

$OpenBSD: patch-src_include_thread_h,v 1.1 2012/05/16 12:09:35 sthen Exp $
--- src/include/thread.h.orig Wed May 16 05:35:18 2012
+++ src/include/thread.h Wed May 16 05:36:30 2012
@@ -103,7 +103,7 @@
#endif
#if defined(__GNUC__) && (defined(_GLIBCXX_ATOMIC_BUILTINS) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 401))
-#if !defined(__FreeBSD__) || defined(__x86_64__)
+#if !(defined(__FreeBSD__) || defined(__OpenBSD__)) || defined(__x86_64__)
#define USE_GCC_ATOMICS
#endif
#endif