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
This commit is contained in:
parent
6ba28bf74f
commit
12860ce5d4
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue