diff options
author | demon <demon@FreeBSD.org> | 2018-02-18 02:22:27 +0800 |
---|---|---|
committer | demon <demon@FreeBSD.org> | 2018-02-18 02:22:27 +0800 |
commit | 80222a3ba4e3b03c27fcdd5a7fab5237ed466e92 (patch) | |
tree | eddaa20411e4664b024dfa3ff5899c8ab8897089 /net | |
parent | 89b473f78e04782a5e12a6e240f9a4e09da593c3 (diff) | |
download | freebsd-ports-gnome-80222a3ba4e3b03c27fcdd5a7fab5237ed466e92.tar.gz freebsd-ports-gnome-80222a3ba4e3b03c27fcdd5a7fab5237ed466e92.tar.zst freebsd-ports-gnome-80222a3ba4e3b03c27fcdd5a7fab5237ed466e92.zip |
Fix build on i386 arch.
PR: 225749
Submitted by: Franco Fichtner <franco@opnsense.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/haproxy-devel/files/patch-include-common-hathreads.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/haproxy-devel/files/patch-include-common-hathreads.h b/net/haproxy-devel/files/patch-include-common-hathreads.h new file mode 100644 index 000000000000..eddbc9a6e072 --- /dev/null +++ b/net/haproxy-devel/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) |