From 12860ce5d4171b9910d17614aa9dece1f9f59959 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Wed, 20 Mar 2013 19:53:26 +0000 Subject: [PATCH] Fix #183 (short term fix) This is a temporary fix for #183, so that things can build cleanly until the issue is fixed properly. If RIMESTATS_CONF_ENABLED is 0, rimestats.foo will always read as 0, since RIMESTATS_ADD(foo) doesn't do anything --- core/net/rime/rimestats.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/net/rime/rimestats.h b/core/net/rime/rimestats.h index 607aa78ad..d40c9b684 100644 --- a/core/net/rime/rimestats.h +++ b/core/net/rime/rimestats.h @@ -55,8 +55,9 @@ struct rimestats { unsigned long lltx, llrx; }; -#if RIMESTATS_CONF_ENABLED extern struct rimestats rimestats; + +#if RIMESTATS_CONF_ENABLED #define RIMESTATS_ADD(x) rimestats.x++ #else /* RIMESTATS_CONF_ENABLED */ #define RIMESTATS_ADD(x)