3
0
forked from pool/findutils
findutils/findutils-4.5.10-use_proc_mounts.patch

15 lines
335 B
Diff

--- gnulib/lib/mountlist.c.orig 2012-01-16 15:24:39.982035415 -0500
+++ gnulib/lib/mountlist.c 2012-01-16 15:26:14.587852681 -0500
@@ -71,6 +71,11 @@
# endif
#endif
+#if defined __linux__
+# undef MOUNTED
+# define MOUNTED "/proc/mounts"
+#endif
+
#ifdef MOUNTED_GETMNTINFO /* 4.4BSD. */
# include <sys/mount.h>
#endif