From: Guus Sliepen Date: Tue, 19 Feb 2019 21:11:58 +0000 (+0100) Subject: Fix building the channels test. X-Git-Url: http://git.meshlink.io/?p=meshlink;a=commitdiff_plain;h=7b36d61024ee05caa638f7cd45044b98b31b8aa8 Fix building the channels test. --- 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;