Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovs-atomic: Fix inclusion of Clang header by GCC 14.
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: 07ece36 ("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]> Acked-by: Jakob Meng <[email protected]> Signed-off-by: 0-day Robot <[email protected]>
- Loading branch information