Include the rimestats variable only if rimestats are enabled by the configuration
This commit is contained in:
parent
4efd570cf9
commit
843d2361dc
|
@ -55,8 +55,11 @@ struct rimestats {
|
|||
unsigned long lltx, llrx;
|
||||
};
|
||||
|
||||
#if RIMESTATS_CONF_ENABLED
|
||||
extern struct rimestats rimestats;
|
||||
|
||||
#define RIMESTATS_ADD(x) rimestats.x++
|
||||
#else /* RIMESTATS_CONF_ENABLED */
|
||||
#define RIMESTATS_ADD(x)
|
||||
#endif /* RIMESTATS_CONF_ENABLED */
|
||||
|
||||
#endif /* __RIMESTATS_H__ */
|
||||
|
|
Loading…
Reference in a new issue