1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00

Add forgotten patch to fix build on i386 (the same as in haproxy-devel).

This commit is contained in:
Dmitry Sivachenko 2018-08-23 11:57:27 +00:00
parent 9b0ae29bbd
commit 1a99cd2c55
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=477868

View File

@ -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)