aboutsummaryrefslogtreecommitdiffstats
path: root/net/haproxy
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2018-08-23 19:57:27 +0800
committerdemon <demon@FreeBSD.org>2018-08-23 19:57:27 +0800
commitd75e3f4a8f7db2aa9f9b6eef97fbb6b120964a6f (patch)
treef69913657b20acf3139f97a89013e499f3576009 /net/haproxy
parent36440937a1702a010f966423426e27cecc71b65f (diff)
downloadfreebsd-ports-gnome-d75e3f4a8f7db2aa9f9b6eef97fbb6b120964a6f.tar.gz
freebsd-ports-gnome-d75e3f4a8f7db2aa9f9b6eef97fbb6b120964a6f.tar.zst
freebsd-ports-gnome-d75e3f4a8f7db2aa9f9b6eef97fbb6b120964a6f.zip
Add forgotten patch to fix build on i386 (the same as in haproxy-devel).
Diffstat (limited to 'net/haproxy')
-rw-r--r--net/haproxy/files/patch-include-common-hathreads.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/haproxy/files/patch-include-common-hathreads.h b/net/haproxy/files/patch-include-common-hathreads.h
new file mode 100644
index 000000000000..eddbc9a6e072
--- /dev/null
+++ b/net/haproxy/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)