summaryrefslogtreecommitdiff
path: root/net/haproxy19/files/patch-include-common-hathreads.h
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2019-06-17 10:45:21 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2019-06-17 10:45:21 +0000
commitd9ae6de127339d9c7dae889fc12efd10c6084903 (patch)
tree7980367fcba64754267478a3ad21974e43f71cde /net/haproxy19/files/patch-include-common-hathreads.h
parentlang/opencoarrays: Update to 2.7.1 (diff)
Update haproxy port to the latest release 2.0.0.
Keep 1.9 branch in a separate port for a while.
Notes
Notes: svn path=/head/; revision=504408
Diffstat (limited to 'net/haproxy19/files/patch-include-common-hathreads.h')
-rw-r--r--net/haproxy19/files/patch-include-common-hathreads.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/haproxy19/files/patch-include-common-hathreads.h b/net/haproxy19/files/patch-include-common-hathreads.h
new file mode 100644
index 000000000000..eddbc9a6e072
--- /dev/null
+++ b/net/haproxy19/files/patch-include-common-hathreads.h
@@ -0,0 +1,11 @@
+--- include/common/hathreads.h.orig 2018-02-17 18:17:22.219400000 +0000
++++ include/common/hathreads.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)