osx build is broken

https://travis-ci.com/haproxy/haproxy/jobs/199157750

seems to be related

пт, 10 мая 2019 г. в 14:45, Chris Packham <chris.pack...@alliedtelesis.co.nz
>:

> __ha_cas_dw() is used in fd_rm_from_fd_list() and when built without
> USE_THREADS=1 the linker fails to find __ha_cas_dw(). Add a definition
> of __ha_cas_dw() for the #ifndef USE_THREADS case.
>
> Signed-off-by: Chris Packham <chris.pack...@alliedtelesis.co.nz>
> ---
> Changes in v2:
> - cast to int * to avoid dereferencing void *
>
>  include/common/hathreads.h | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/include/common/hathreads.h b/include/common/hathreads.h
> index cae6eabe..7314293a 100644
> --- a/include/common/hathreads.h
> +++ b/include/common/hathreads.h
> @@ -140,6 +140,11 @@ static inline void __ha_barrier_full(void)
>  {
>  }
>
> +static inline int __ha_cas_dw(void *target, void *compare, void *set)
> +{
> +       return HA_ATOMIC_CAS((int *)target, (int *)compare, (int *)set);
> +}
> +
>  static inline void thread_harmless_now()
>  {
>  }
> --
> 2.21.0
>
>
>

Reply via email to