diff --git a/include/lib/small/lf_lifo.h b/include/lib/small/lf_lifo.h index a725c57d12618e50111e447aa03ea18843e21912..a763a5a5facb22acd4a4c999e5481dca15677e03 100644 --- a/include/lib/small/lf_lifo.h +++ b/include/lib/small/lf_lifo.h @@ -39,7 +39,6 @@ * be the case when another implementation is used. */ #define atomic_cas(a, b, c) __sync_val_compare_and_swap(a, b, c) -#define atomic_add(a, b) __sync_add_and_fetch(a, b) /** * A very primitive implementation of lock-free diff --git a/test/unit/lf_lifo.c b/test/unit/lf_lifo.c index 1d42a4fa4de09618544b273ae3ed32fb7514da5e..7da84c947abf23ee1834c46bcf9e246663391407 100644 --- a/test/unit/lf_lifo.c +++ b/test/unit/lf_lifo.c @@ -1,4 +1,5 @@ #include "lib/small/lf_lifo.h" +#include "tarantool/config.h" #include "unit.h" #include <sys/mman.h>