From 7b36d61024ee05caa638f7cd45044b98b31b8aa8 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 19 Feb 2019 22:11:58 +0100 Subject: [PATCH] Fix building the channels test. --- src/meshlink_internal.h | 6 +++++- test/channels.c | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/meshlink_internal.h b/src/meshlink_internal.h index 45c6c951..a650083a 100644 --- a/src/meshlink_internal.h +++ b/src/meshlink_internal.h @@ -3,7 +3,7 @@ /* meshlink_internal.h -- Internal parts of the public API. - Copyright (C) 2014, 2017 Guus Sliepen + Copyright (C) 2014-2019 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,6 +20,10 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#ifdef MESHLINK_H +#error You must not include both meshlink.h and meshlink_internal.h! +#endif + #include "system.h" #include "event.h" diff --git a/test/channels.c b/test/channels.c index c1befeec..52d80a9c 100644 --- a/test/channels.c +++ b/test/channels.c @@ -5,7 +5,6 @@ #include #include "../src/meshlink.h" -#include "../src/node.h" volatile bool bar_reachable = false; volatile bool bar_responded = false; -- 2.39.5