From d4cfba5e74bb683e95c8423b03fafa248bda1eb5 Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Fri, 2 Sep 2016 14:59:46 +0200 Subject: [PATCH] Fix compilation against >=xfsprogs-4.7.0 [backport of commit 225ee7bb45152c51c1c9508b2e776cef36d2682d] Suggested-by: Ruben Kerkhof Gentoo-Bug: https://bugs.gentoo.org/590998 Fixes: https://github.com/collectd/collectd/issues/1877 --- src/utils_mount.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/utils_mount.c b/src/utils_mount.c index da53b980..37b52d68 100644 --- a/src/utils_mount.c +++ b/src/utils_mount.c @@ -24,16 +24,17 @@ # include "config.h" #endif +#define _GNU_SOURCE + +#include "collectd.h" +#include "utils_mount.h" + #if HAVE_XFS_XQM_H -# define _GNU_SOURCE # include #define XFS_SUPER_MAGIC_STR "XFSB" #define XFS_SUPER_MAGIC2_STR "BSFX" #endif -#include "collectd.h" -#include "utils_mount.h" - #include "common.h" /* sstrncpy() et alii */ #include "plugin.h" /* ERROR() macro */ -- 2.11.0