Skip to content

Commit

Permalink
workaround for cmocka and strdupz()
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsaou committed Jun 8, 2022
1 parent 580cd14 commit 7bebee0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions database/rrdlabels.c
Expand Up @@ -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

Expand Down

0 comments on commit 7bebee0

Please sign in to comment.