From: Kamil Wiatrowski Date: Mon, 19 Feb 2018 13:24:10 +0000 (+0000) Subject: intel_pmu plugin: fix for compatibility issue with collectd 5.8 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=12d7e133cda071ab83f37f18126c4fc6159d08ee intel_pmu plugin: fix for compatibility issue with collectd 5.8 Add definition for PRIsz macro to make code backward compatible with collectd-5.8 branch. Change-Id: I880340af5ae883a444563422b3e9975b3693683c Signed-off-by: Kamil Wiatrowski --- diff --git a/src/intel_rdt.c b/src/intel_rdt.c index 6613ab8f..1a39e044 100644 --- a/src/intel_rdt.c +++ b/src/intel_rdt.c @@ -25,8 +25,8 @@ * Serhiy Pshyk **/ -#include "common.h" #include "collectd.h" +#include "common.h" #include "utils_config_cores.h" diff --git a/src/utils_config_cores.h b/src/utils_config_cores.h index c1b92d0a..b5787b1e 100644 --- a/src/utils_config_cores.h +++ b/src/utils_config_cores.h @@ -28,6 +28,10 @@ #ifndef UTILS_CONFIG_CORES_H #define UTILS_CONFIG_CORES_H 1 +#ifndef PRIsz +#define PRIsz "zu" +#endif /* PRIsz */ + struct core_group_s { char *desc; unsigned *cores;