diff --git a/src/utils_mount.c b/src/utils_mount.c
index 4ec5fb79e8bcd8bbd8e4b68334309796004f2b19..37b52d683ceb4e27154c67140e8cd73111b050da 100644 (file)
--- a/src/utils_mount.c
+++ b/src/utils_mount.c
* Niki W. Waibel <niki.waibel@gmx.net>
**/
+#if HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#define _GNU_SOURCE
+
#include "collectd.h"
#include "utils_mount.h"
-#include "common.h" /* sstrncpy() et alii */
-#include "plugin.h" /* ERROR() macro */
-
#if HAVE_XFS_XQM_H
# include <xfs/xqm.h>
#define XFS_SUPER_MAGIC_STR "XFSB"
#define XFS_SUPER_MAGIC2_STR "BSFX"
#endif
+#include "common.h" /* sstrncpy() et alii */
+#include "plugin.h" /* ERROR() macro */
+
+
#if HAVE_GETVFSSTAT
# if HAVE_SYS_TYPES_H
# include <sys/types.h>