]> git.pld-linux.org Git - packages/collectd.git/blobdiff - glibc-2.36.patch
hack for mount.h conflict between linux and glibc headers
[packages/collectd.git] / glibc-2.36.patch
diff --git a/glibc-2.36.patch b/glibc-2.36.patch
new file mode 100644 (file)
index 0000000..17a3218
--- /dev/null
@@ -0,0 +1,14 @@
+--- collectd-5.9.2/src/utils/mount/mount.h.orig        2019-10-01 14:00:47.000000000 +0200
++++ collectd-5.9.2/src/utils/mount/mount.h     2022-08-23 13:13:10.904711606 +0200
+@@ -54,7 +54,11 @@
+ #include <sys/mnttab.h>
+ #endif
+ #if HAVE_SYS_MOUNT_H
++#if !defined(__GLIBC__) || (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 36)
+ #include <sys/mount.h>
++#else
++#include <linux/mount.h>
++#endif
+ #endif
+ #if HAVE_SYS_STATFS_H
+ #include <sys/statfs.h>
This page took 0.064729 seconds and 4 git commands to generate.