]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
gmond plugin: Import `<ganglia.h>`.
authorFlorian Forster <octo@collectd.org>
Sat, 25 Nov 2023 16:35:27 +0000 (17:35 +0100)
committerFlorian Forster <octo@collectd.org>
Sat, 25 Nov 2023 21:58:22 +0000 (22:58 +0100)
`<gm_protocol.h>` has been removed in new versions of libganglia.

configure.ac
src/gmond.c

index bb4f560cf09ccab4a1226a2eafa9cb3f24e52063..234391a0ad911182302bce20cf1a904589202986 100644 (file)
@@ -2639,9 +2639,9 @@ CPPFLAGS="$CPPFLAGS $GANGLIA_CPPFLAGS"
 LDFLAGS="$LDFLAGS $GANGLIA_LDFLAGS"
 
 if test "x$with_libganglia" = "xyes"; then
-  AC_CHECK_HEADERS([gm_protocol.h],
+  AC_CHECK_HEADERS([ganglia.h],
     [with_libganglia="yes"],
-    [with_libganglia="no (gm_protocol.h not found)"]
+    [with_libganglia="no (ganglia.h not found)"]
   )
 fi
 
index 4210e30d0877ae539d14d4a26b34500170bd8f3a..9a5f80870c7852d0f11835952b3191dc6d5b5935 100644 (file)
@@ -43,7 +43,7 @@
 #include <poll.h>
 #endif
 
-#include <gm_protocol.h>
+#include <ganglia.h>
 
 #ifndef IPV6_ADD_MEMBERSHIP
 #ifdef IPV6_JOIN_GROUP