ports/net/nuster/files/patch-include-common-hathreads.h
Martin Wilke f0a027b4b6 - Update to 2.0.2.18
PR:		230684
Sponsored by:	iXsystems Inc.
2018-09-28 18:18:57 +00:00

11 lines
648 B
C

--- include/common/hathreads.h.orig 2018-08-15 11:14:35 UTC
+++ include/common/hathreads.h
@@ -113,7 +113,7 @@ extern THREAD_LOCAL unsigned long tid_bi
/* TODO: thread: For now, we rely on GCC builtins but it could be a good idea to
* have a header file regrouping all functions dealing with threads. */
-#if defined(__GNUC__) && (__GNUC__ < 4 || __GNUC__ == 4 && __GNUC_MINOR__ < 7) && !defined(__clang__)
+#if (defined(__GNUC__) && (__GNUC__ < 4 || __GNUC__ == 4 && __GNUC_MINOR__ < 7) && !defined(__clang__)) || (defined(__clang__) && defined(__i386__))
/* gcc < 4.7 */
#define HA_ATOMIC_ADD(val, i) __sync_add_and_fetch(val, i)