3
0
forked from pool/findutils
findutils/findutils-use_proc_mounts.patch
OBS User autobuild e794516f62 Accepting request 36633 from Base:System
Copy from Base:System/findutils based on submit request 36633 from user psmt

OBS-URL: https://build.opensuse.org/request/show/36633
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/findutils?expand=0&rev=19
2010-04-01 15:18:34 +00:00

18 lines
571 B
Diff

Index: gnulib/lib/mountlist.c
===================================================================
--- gnulib/lib/mountlist.c.orig 2007-12-02 12:57:51.000000000 +0100
+++ gnulib/lib/mountlist.c 2010-04-01 12:20:56.784502964 +0200
@@ -60,7 +60,11 @@
# include <mntent.h>
# if !defined MOUNTED
# if defined _PATH_MOUNTED /* GNU libc */
-# define MOUNTED _PATH_MOUNTED
+# if defined __linux__
+# define MOUNTED "/proc/mounts"
+# else
+# define MOUNTED _PATH_MOUNTED
+# endif
# endif
# if defined MNT_MNTTAB /* HP-UX. */
# define MOUNTED MNT_MNTTAB