From a7a3947b9bd82e30124baab5c71925f20228ad9a Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 5 Jul 2017 15:19:52 +0200 Subject: move libiu to osmo-iuh/libosmo-ranap Remove libiu here, use the functions from libosmo-ranap instead, by applying the ranap_ / RANAP_ prefix. Corresponding change-id in osmo-iuh.git is I6a3f7ad15be03fb94689b4af6ccfa828c25f45c0 To be able to run the msc_vlr tests for RAN_UTRAN_IU without Iu client headers available, add iu_dummy.h, containing mere function signatures that match iu_dummy.c and a mostly empty struct ranap_ue_conn_ctx. Make sure we can build with and without --enable-iu: include osmo-iuh headers only with --enable-iu. Change-Id: Ib8c4fcdb4766c5e575618b95ce16dce51063206b --- src/gprs/gprs_sgsn.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/gprs/gprs_sgsn.c') diff --git a/src/gprs/gprs_sgsn.c b/src/gprs/gprs_sgsn.c index 43eeaaa9b..de79afb1a 100644 --- a/src/gprs/gprs_sgsn.c +++ b/src/gprs/gprs_sgsn.c @@ -40,7 +40,6 @@ #include #include #include "openbsc/gprs_llc.h" -#include #include @@ -48,6 +47,12 @@ #include +#include "../../bscconfig.h" + +#if BUILD_IU +#include +#endif + #define GPRS_LLME_CHECK_TICK 30 extern struct sgsn_instance *sgsn; @@ -246,6 +251,7 @@ struct sgsn_mm_ctx *sgsn_mm_ctx_alloc_gb(uint32_t tlli, /* Allocate a new SGSN MM context */ struct sgsn_mm_ctx *sgsn_mm_ctx_alloc_iu(void *uectx) { +#if BUILD_IU struct sgsn_mm_ctx *ctx; ctx = talloc_zero(tall_bsc_ctx, struct sgsn_mm_ctx); @@ -274,6 +280,9 @@ struct sgsn_mm_ctx *sgsn_mm_ctx_alloc_iu(void *uectx) llist_add(&ctx->list, &sgsn_mm_ctxts); return ctx; +#else + return NULL; +#endif } -- cgit v1.2.3