[MERGED] libosmocore[master]: src/logging.c: Fix EMBEDDED build

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon May 15 11:46:01 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: src/logging.c: Fix EMBEDDED build
......................................................................


src/logging.c: Fix EMBEDDED build

We don't enable/build _file_output in EMBEDDED builds, so we shouldn'r
refer to that symbol.

Change-Id: I491aa8ee9d20a96cbb2814700475afe03eb99c9e
---
M src/logging.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/logging.c b/src/logging.c
index 4c9d6f3..0d2b6da 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -683,7 +683,7 @@
 struct log_target *log_target_create_stderr(void)
 {
 /* since C89/C99 says stderr is a macro, we can safely do this! */
-#ifdef stderr
+#if !EMBEDDED && defined(stderr)
 	struct log_target *target;
 
 	target = log_target_create();

-- 
To view, visit https://gerrit.osmocom.org/2621
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I491aa8ee9d20a96cbb2814700475afe03eb99c9e
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list