From 45dc1d522553ef8f90ebe05bee36bce566101641 Mon Sep 17 00:00:00 2001
From: Konstantin Osipov <kostja@tarantool.org>
Date: Wed, 13 Nov 2013 18:26:09 +0400
Subject: [PATCH] Portability fix for FreeBSD (MAP_ANONYMOUS is not defined).

---
 include/lib/small/lf_lifo.h | 1 -
 test/unit/lf_lifo.c         | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/lib/small/lf_lifo.h b/include/lib/small/lf_lifo.h
index a725c57d12..a763a5a5fa 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 1d42a4fa4d..7da84c947a 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>
 
-- 
GitLab