summaryrefslogtreecommitdiff
path: root/sysutils/collectd/patches/patch-src_df.c
blob: 5b30e80b9f5d6eed993d1b932d6e19cfc497fac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-src_df.c,v 1.6 2020/10/24 22:39:45 wiz Exp $

Older NetBSD doesn't have float_t.

--- src/df.c.orig	2020-03-08 16:57:09.000000000 +0100
+++ src/df.c	2020-07-06 19:28:15.661572605 +0200
@@ -28,6 +28,14 @@
 #include "utils/ignorelist/ignorelist.h"
 #include "utils/mount/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>