diff --git a/sys/net/netmap.h b/sys/net/netmap.h index 681e50d2b8a9..f3688fc9e919 100644 --- a/sys/net/netmap.h +++ b/sys/net/netmap.h @@ -784,9 +784,10 @@ static inline void nm_stst_barrier(void) #ifdef _KERNEL #define nm_stst_barrier atomic_thread_fence_rel #else /* !_KERNEL */ +#include static inline void nm_stst_barrier(void) { - __atomic_thread_fence(__ATOMIC_RELEASE); + atomic_thread_fence(memory_order_release); } #endif /* !_KERNEL */