aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-04-20 19:47:19 +0200
committerAlexander Couzens <lynxis@fe80.eu>2020-08-14 14:45:07 +0200
commit8a2690247bdd75675d78d290ea869831eb7ded61 (patch)
treebb3d9208087b05115242a7ed179ed3d5813b4863
parentac1eed08c0f9c5313c502fbcda4851d3cfda89d8 (diff)
gtphub_test: Fix compilation with gcc-10
/usr/bin/ld: ../../src/gtphub/gtphub.o:/home/laforge/projects/git/osmo-sgsn/src/gtphub/gtphub.c:50: multiple definition of `osmo_gtphub_ctx'; gtphub_test.o:/home/laforge/projects/git/osmo-sgsn/tests/gtphub/gtphub_test.c:57: first defined here collect2: error: ld returned 1 exit status See also https://alioth-lists.debian.net/pipermail/debian-mobcom-maintainers/Week-of-Mon-20200413/000653.html Change-Id: I19c1eef6649d2747f0b624f5292d7ae47c4ca839
-rw-r--r--tests/gtphub/gtphub_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gtphub/gtphub_test.c b/tests/gtphub/gtphub_test.c
index 9a8ec6b0..d381b9b8 100644
--- a/tests/gtphub/gtphub_test.c
+++ b/tests/gtphub/gtphub_test.c
@@ -54,7 +54,7 @@
void gtphub_init(struct gtphub *hub);
void gtphub_free(struct gtphub *hub);
-void *osmo_gtphub_ctx;
+extern void *osmo_gtphub_ctx;
static void nr_mapping_free(struct expiring_item *e)
{