0
0
Fork 0
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:
Costa Tsaousis 2022-06-08 13:51:04 +03:00
parent 580cd141c4
commit 7bebee0480

View file

@ -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