Files
bpfire/src/patches/collectd-4.10.9-xfs-compile-fix.patch
Michael Tremer 8d4da55a5d collectd: Fix compiling against newer xfsprogs
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-10-23 16:45:33 +01:00

29 lines
611 B
Diff

--- collectd-4.10.9/src/utils_mount.c~ 2018-10-23 12:16:24.979393842 +0000
+++ collectd-4.10.9/src/utils_mount.c 2018-10-23 12:18:44.473984419 +0000
@@ -21,20 +21,22 @@
* Niki W. Waibel <niki.waibel@gmx.net>
**/
+#define _GNU_SOURCE
+
#if HAVE_CONFIG_H
# include "config.h"
#endif
#include "common.h"
+#include "plugin.h"
+#include "utils_mount.h"
+
#if HAVE_XFS_XQM_H
# include <xfs/xqm.h>
#define XFS_SUPER_MAGIC_STR "XFSB"
#define XFS_SUPER_MAGIC2_STR "BSFX"
#endif
-#include "plugin.h"
-#include "utils_mount.h"
-
#if HAVE_GETVFSSTAT
# if HAVE_SYS_TYPES_H
# include <sys/types.h>