pespin has submitted this change. (
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(-)
Approvals:
laforge: Looks good to me, approved
Jenkins Builder: Verified
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;
}
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/41869?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I9c4aa66a55beac710912db9b8d3ad9ae5c1679ef
Gerrit-Change-Number: 41869
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>