pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/41869?usp=email )
Change subject: select.c: Check for ENABLE_PSEUDOTALLOC instead of EMBEDDED ......................................................................
select.c: Check for ENABLE_PSEUDOTALLOC instead of EMBEDDED
The reason to avoid that code is that pseudotalloc doesn't implement that function. Hence check for pseudotalloc support specifically.
Change-Id: I9c4aa66a55beac710912db9b8d3ad9ae5c1679ef --- M src/core/select.c 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/69/41869/1
diff --git a/src/core/select.c b/src/core/select.c index 267f041..a577c5b 100644 --- a/src/core/select.c +++ b/src/core/select.c @@ -509,12 +509,12 @@ int osmo_select_main(int polling) { int rc = _osmo_select_main(polling); -#ifndef EMBEDDED +#ifndef ENABLE_PSEUDOTALLOC if (talloc_total_size(osmo_ctx->select) != 0) { osmo_panic("You cannot use the 'select' volatile " "context if you don't use osmo_select_main_ctx()!\n"); } -#endif +#endif /* ifndef ENABLE_PSEUDOTALLOC */ return rc; }