On 18 Jan 2024, at 15:59, Ilya Maximets wrote:

> GCC 14 started to advertise c_atomic extension, older versions didn't
> do that.  Add check for __clang__, so GCC doesn't include headers
> designed for Clang.
>
> Another option would be to prefer stdatomic implementation instead,
> but some older versions of Clang are not able to use stdatomic.h
> supplied by GCC as described in commit:
>   07ece367fb5f ("ovs-atomic: Prefer Clang intrinsics over <stdatomic.h>.")
>
> This change fixes OVS build with GCC on Fedora Rawhide (40).
>
> Reported-by: Jakob Meng <[email protected]>
> Signed-off-by: Ilya Maximets <[email protected]>

Seem to work fine on all my older build environments with both GCC and clang.

Acked-by: Eelco Chaudron <[email protected]>

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to