pkgsrc/sysutils/collectd/patches/patch-src_df.c
fhajny 125c46fdc8 Update sysutils/collectd to 5.6.2.
Most of the NetBSD specific patches were re-applied due to code
syntax changes.

Upstream changes in 5.6.2:
- collectd: A compile error on AIX has been fixed: "MSG_DONTWAIT" is not
  available on AIX.
- collectd: The capability checking has been rewritten to be more
  portable.
- collectd.conf(5): Various typos have been fixed.
- collectd-tg: Incorrect usage of "nanosleep()" has been fixed which
  caused the tool to sleep (almost) indefinitely.
- Build system: Detection of the Java environment has been made
  deterministic to allow for reproducible builds.
- Build system: Detection of the Lua headers has been improved.
- APC UPS plugin: Unavailable metrics are now skipped instead of
  reported as 0 (zero).
- Modbus plugin: Build issues on FreeBSD have been fixed.
- OpenVPN plugin: Gracefully handle empty configurations.
- PowerDNS plugin: The "recursor command" has been fixed so PowerDNS can
  correctly parse all requested fields.
- Write Graphite and AMQP plugins: A bug that could lead to a missing
  null-termination has been fixed.
- Write HTTP plugin: A logic error when checking the correctness of the
  data set has been fixed.
- Write Kafka plugin: The "Key Random" config option has been fixed.
- Write Kafka plugin: Support for librdkafka 0.9.0 has been added.
- Write Riemann plugin: Build issues on Solaris have been fixed.
- ZFS ARC plugin: A duplicate metric has been removed.
2016-12-07 17:28:39 +00:00

21 lines
459 B
C

$NetBSD: patch-src_df.c,v 1.5 2016/12/07 17:28:39 fhajny Exp $
Older NetBSD doesn't have float_t.
--- src/df.c.orig 2016-11-30 08:52:01.312911569 +0000
+++ src/df.c
@@ -28,6 +28,14 @@
#include "utils_ignorelist.h"
#include "utils_mount.h"
+#if defined(__NetBSD__)
+#include <sys/param.h>
+#include <math.h>
+#if __NetBSD_Version__ < 699001900
+typedef float float_t;
+#endif
+#endif
+
#if HAVE_STATVFS
#if HAVE_SYS_STATVFS_H
#include <sys/statvfs.h>