Date: Thu, 23 Aug 2018 11:57:27 +0000 (UTC) From: Dmitry Sivachenko <demon@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r477868 - head/net/haproxy/files Message-ID: <201808231157.w7NBvRi2071943@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: demon Date: Thu Aug 23 11:57:27 2018 New Revision: 477868 URL: https://svnweb.freebsd.org/changeset/ports/477868 Log: Add forgotten patch to fix build on i386 (the same as in haproxy-devel). Added: head/net/haproxy/files/patch-include-common-hathreads.h (contents, props changed) Added: head/net/haproxy/files/patch-include-common-hathreads.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/haproxy/files/patch-include-common-hathreads.h Thu Aug 23 11:57:27 2018 (r477868) @@ -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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808231157.w7NBvRi2071943>