summaryrefslogtreecommitdiff
path: root/net/haproxy-devel/files/patch-include-haproxy-atomic.h
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2020-06-27 08:21:26 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2020-06-27 08:21:26 +0000
commit6ea34b90da510d9744ad70e45e773f55db676ab8 (patch)
tree116e755abc86bfd94c514d3114dda22d8d545ad4 /net/haproxy-devel/files/patch-include-haproxy-atomic.h
parentUpdate to 8.3.3: (diff)
Update to -dev11.
Notes
Notes: svn path=/head/; revision=540565
Diffstat (limited to 'net/haproxy-devel/files/patch-include-haproxy-atomic.h')
-rw-r--r--net/haproxy-devel/files/patch-include-haproxy-atomic.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/haproxy-devel/files/patch-include-haproxy-atomic.h b/net/haproxy-devel/files/patch-include-haproxy-atomic.h
new file mode 100644
index 000000000000..d8b7c8ea15cb
--- /dev/null
+++ b/net/haproxy-devel/files/patch-include-haproxy-atomic.h
@@ -0,0 +1,11 @@
+--- include/haproxy/atomic.h.orig 2018-02-17 18:17:22.219400000 +0000
++++ include/haproxy/atomic.h 2018-02-17 18:18:44.598422000 +0000
+@@ -104,7 +104,7 @@ extern THREAD_LOCAL unsigned long tid_bit; /* The bit
+ /* 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)