@@ -26,6 +26,7 @@ PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.3.9)
PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty)
PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 0.3.3)
PKG_CHECK_MODULES(LIBOSMOGB, libosmogb >= 0.5.1.4)
+PKG_CHECK_MODULES(LIBTALLOC, talloc >= 2.0.1)
AC_MSG_CHECKING([whether to enable sysmocom-bts hardware support])
AC_ARG_ENABLE(sysmocom-bts,
@@ -112,6 +112,7 @@ osmo_pcu_LDADD = \
$(LIBOSMOGB_LIBS) \
$(LIBOSMOCORE_LIBS) \
$(LIBOSMOGSM_LIBS) \
+ $(LIBTALLOC_LIBS) \
$(COMMON_LA)
if ENABLE_SYSMODSP
@@ -120,6 +121,7 @@ osmo_pcu_remote_LDADD = \
$(LIBOSMOGB_LIBS) \
$(LIBOSMOCORE_LIBS) \
$(LIBOSMOGSM_LIBS) \
+ $(LIBTALLOC_LIBS) \
$(COMMON_LA)
endif
@@ -27,7 +27,7 @@
#include <bitvector.h>
extern "C" {
-#include <osmocom/core/talloc.h>
+#include <talloc.h>
}
void *bv_tall_ctx;
@@ -30,7 +30,7 @@
#include <gprs_debug.h>
extern "C" {
- #include <osmocom/core/talloc.h>
+ #include <talloc.h>
#include <osmocom/core/msgb.h>
}
@@ -23,7 +23,7 @@
extern "C" {
-#include <osmocom/core/talloc.h>
+#include <talloc.h>
#include <osmocom/core/rate_ctr.h>
#include <osmocom/core/logging.h>
#include <osmocom/core/signal.h>
@@ -25,7 +25,7 @@
#include <time.h>
#include <errno.h>
-#include <osmocom/core/talloc.h>
+#include <talloc.h>
#include <osmocom/core/utils.h>
#include <osmocom/core/logging.h>
#include <gprs_debug.h>
@@ -27,7 +27,7 @@
#include <sys/socket.h>
#include <arpa/inet.h>
extern "C" {
-#include <osmocom/core/talloc.h>
+#include <talloc.h>
#include <osmocom/core/write_queue.h>
#include <osmocom/core/socket.h>
#include <osmocom/core/timer.h>
@@ -27,7 +27,7 @@
#include <sys/un.h>
#include <arpa/inet.h>
extern "C" {
-#include <osmocom/core/talloc.h>
+#include <talloc.h>
#include <osmocom/core/select.h>
#include <osmocom/core/msgb.h>
}
@@ -25,7 +25,7 @@
#include <bts.h>
extern "C" {
-#include <osmocom/core/talloc.h>
+#include <talloc.h>
}
#include <errno.h>
@@ -32,7 +32,7 @@
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <osmocom/core/talloc.h>
+#include <talloc.h>
#include <osmocom/core/utils.h>
#include <osmocom/core/select.h>
#include <osmocom/core/write_queue.h>
@@ -29,7 +29,7 @@
#include <sys/types.h>
#include <sys/stat.h>
-#include <osmocom/core/talloc.h>
+#include <talloc.h>
#include <osmocom/core/utils.h>
#include <osmocom/core/select.h>
#include <osmocom/core/write_queue.h>
@@ -1,6 +1,7 @@
#include <string.h>
#include <errno.h>
+#include <talloc.h>
#include <sysmocom/femtobts/superfemto.h>
#include <sysmocom/femtobts/gsml1prim.h>
@@ -8,7 +9,6 @@
#include <sysmocom/femtobts/gsml1types.h>
#include <osmocom/core/gsmtap.h>
-#include <osmocom/core/talloc.h>
#include <osmocom/core/timer.h>
#include <sysmo_l1_if.h>
#include <gprs_debug.h>
@@ -26,7 +26,7 @@
#include <sys/socket.h>
#include <sys/un.h>
extern "C" {
-#include <osmocom/core/talloc.h>
+#include <talloc.h>
#include <osmocom/core/select.h>
#include <osmocom/core/msgb.h>
}
@@ -23,7 +23,7 @@
#include <gprs_rlcmac.h>
extern "C" {
- #include <osmocom/core/talloc.h>
+ #include <talloc.h>
}
#include <errno.h>
@@ -30,7 +30,7 @@
extern "C" {
#include <osmocom/core/msgb.h>
-#include <osmocom/core/talloc.h>
+#include <talloc.h>
}
#include <errno.h>
@@ -29,7 +29,7 @@
extern "C" {
#include <osmocom/core/msgb.h>
-#include <osmocom/core/talloc.h>
+#include <talloc.h>
}
#include <errno.h>
@@ -30,7 +30,7 @@
extern "C" {
#include <osmocom/core/msgb.h>
-#include <osmocom/core/talloc.h>
+#include <talloc.h>
}
#include <errno.h>
@@ -7,6 +7,7 @@ rlcmac_RLCMACTest_SOURCES = rlcmac/RLCMACTest.cpp
rlcmac_RLCMACTest_LDADD = \
$(top_builddir)/src/libgprs.la \
$(LIBOSMOCORE_LIBS) \
+ $(LIBTALLOC_LIBS) \
$(COMMON_LA)
alloc_AllocTest_SOURCES = alloc/AllocTest.cpp
@@ -15,15 +16,17 @@ alloc_AllocTest_LDADD = \
$(LIBOSMOGB_LIBS) \
$(LIBOSMOGSM_LIBS) \
$(LIBOSMOCORE_LIBS) \
+ $(LIBTALLOC_LIBS) \
$(COMMON_LA)
tbf_TbfTest_SOURCES = tbf/TbfTest.cpp
tbf_TbfTest_LDADD = \
+ $(top_builddir)/src/libgprs.la \
$(LIBOSMOGB_LIBS) \
$(LIBOSMOGSM_LIBS) \
$(LIBOSMOCORE_LIBS) \
- $(COMMON_LA) \
- $(top_builddir)/src/libgprs.la
+ $(LIBTALLOC_LIBS) \
+ $(COMMON_LA)
emu_pcu_emu_SOURCES = emu/pcu_emu.cpp emu/test_replay_gprs_attach.cpp \
emu/openbsc_clone.c emu/openbsc_clone.h emu/gprs_tests.h \
@@ -33,15 +36,17 @@ emu_pcu_emu_LDADD = \
$(LIBOSMOGB_LIBS) \
$(LIBOSMOGSM_LIBS) \
$(LIBOSMOCORE_LIBS) \
+ $(LIBTALLOC_LIBS) \
$(COMMON_LA)
types_TypesTest_SOURCES = types/TypesTest.cpp
types_TypesTest_LDADD = \
+ $(top_builddir)/src/libgprs.la \
$(LIBOSMOGB_LIBS) \
$(LIBOSMOGSM_LIBS) \
$(LIBOSMOCORE_LIBS) \
- $(COMMON_LA) \
- $(top_builddir)/src/libgprs.la
+ $(LIBTALLOC_LIBS) \
+ $(COMMON_LA)
# The `:;' works around a Bash 3.2 bug when the output is not writeable.
@@ -28,8 +28,8 @@
extern "C" {
#include <osmocom/core/application.h>
#include <osmocom/core/msgb.h>
-#include <osmocom/core/talloc.h>
#include <osmocom/core/utils.h>
+#include <talloc.h>
}
/* globals used by the code */
@@ -20,7 +20,7 @@
*/
extern "C" {
-#include <osmocom/core/talloc.h>
+#include <talloc.h>
#include <pcu_vty.h>
}
@@ -28,6 +28,7 @@
extern "C" {
extern const struct log_info gprs_log_info;
#include "pcu_vty.h"
+#include <talloc.h>
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/logging.h>
#include <osmocom/core/application.h>
@@ -27,8 +27,8 @@
extern "C" {
#include <osmocom/core/application.h>
#include <osmocom/core/msgb.h>
-#include <osmocom/core/talloc.h>
#include <osmocom/core/utils.h>
+#include <talloc.h>
}
void *tall_pcu_ctx;
@@ -28,8 +28,8 @@
extern "C" {
#include <osmocom/core/application.h>
#include <osmocom/core/msgb.h>
-#include <osmocom/core/talloc.h>
#include <osmocom/core/utils.h>
+#include <talloc.h>
}
#define OSMO_ASSERT_STR_EQ(a, b) \
Signed-off-by: Max Suraev <max.suraev@fairwaves.co> --- configure.ac | 1 + src/Makefile.am | 2 ++ src/bitvector.cpp | 2 +- src/bts.cpp | 2 +- src/gprs_bssgp_pcu.h | 2 +- src/gprs_debug.cpp | 2 +- src/openbts_sock.cpp | 2 +- src/pcu_l1_if.cpp | 2 +- src/sba.cpp | 2 +- src/sysmo_l1_fwd.c | 2 +- src/sysmo_l1_hw.c | 2 +- src/sysmo_l1_if.c | 2 +- src/sysmo_sock.cpp | 2 +- src/ta.cpp | 2 +- src/tbf.cpp | 2 +- src/tbf_dl.cpp | 2 +- src/tbf_ul.cpp | 2 +- tests/Makefile.am | 13 +++++++++---- tests/alloc/AllocTest.cpp | 2 +- tests/emu/pcu_emu.cpp | 2 +- tests/rlcmac/RLCMACTest.cpp | 1 + tests/tbf/TbfTest.cpp | 2 +- tests/types/TypesTest.cpp | 2 +- 23 files changed, 32 insertions(+), 23 deletions(-)