diff options
author | Dmitry Sivachenko <demon@FreeBSD.org> | 2018-08-23 11:57:27 +0000 |
---|---|---|
committer | Dmitry Sivachenko <demon@FreeBSD.org> | 2018-08-23 11:57:27 +0000 |
commit | 1a99cd2c555a474b355a08a257ee99838f5aaf7d (patch) | |
tree | f69913657b20acf3139f97a89013e499f3576009 /net/haproxy/files | |
parent | devel/libruin: Remove unneeded include (diff) |
Add forgotten patch to fix build on i386 (the same as in haproxy-devel).
Diffstat (limited to 'net/haproxy/files')
-rw-r--r-- | net/haproxy/files/patch-include-common-hathreads.h | 11 |
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) |