mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 10:09:25 +00:00
Merge pull request #2942 from mjstapp/fix_new_atomics
libs: fix missing atomics for some gcc versions
This commit is contained in:
commit
f177317a20
@ -29,6 +29,12 @@
|
||||
#ifdef HAVE_STDATOMIC_H
|
||||
#include <stdatomic.h>
|
||||
|
||||
/* These are available in gcc, but not in stdatomic */
|
||||
#define atomic_add_fetch_explicit __atomic_add_fetch
|
||||
#define atomic_sub_fetch_explicit __atomic_sub_fetch
|
||||
#define atomic_and_fetch_explicit __atomic_and_fetch
|
||||
#define atomic_or_fetch_explicit __atomic_or_fetch
|
||||
|
||||
/* gcc 4.7 and newer */
|
||||
#elif defined(HAVE___ATOMIC)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user