mirror of
https://github.com/netdata/netdata.git
synced 2025-04-17 11:12:42 +00:00
workaround for cmocka and strdupz()
This commit is contained in:
parent
580cd141c4
commit
7bebee0480
1 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,14 @@
|
|||
#define NETDATA_RRD_INTERNALS
|
||||
#include "rrd.h"
|
||||
|
||||
#ifdef UNIT_TESTING
|
||||
// cmocka workaround for strdupz()
|
||||
#ifdef strdupz
|
||||
#undef strdupz
|
||||
#endif // strdupz
|
||||
#define strdupz(x) strdup(x)
|
||||
#endif // UNIT_TESTING
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// labels sanitization
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue