]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
[intel_rdt] Fix build for LIBPQOS < 2
authorEmma Foley <efoley@redhat.com>
Fri, 3 Dec 2021 20:59:29 +0000 (15:59 -0500)
committerMatthias Runge <mrunge@matthias-runge.de>
Mon, 6 Dec 2021 13:50:26 +0000 (14:50 +0100)
ChangeLog: intel_rdt: Update intel_rdt to build on libpqos < 2

src/intel_rdt.c

index 09019ce485812f08e80c485eced336874ce9a8e8..29c75ebf2fd3bdccdab437b634142efb71634ae2 100644 (file)
@@ -526,6 +526,7 @@ static void rdt_free_ngroups(rdt_ctx_t *rdt) {
 
   rdt->num_ngroups = 0;
 }
+#endif /* LIBPQOS2 */
 
 /*
  * NAME
@@ -565,6 +566,8 @@ static int rdt_config_events(rdt_ctx_t *rdt) {
 #endif /* LIBPQOS2 */
   return 0;
 }
+
+#ifdef LIBPQOS2
 /*
  * NAME
  *   rdt_config_ngroups