diff options
author | Giulio Benetti <giulio.benetti@benettiengineering.com> | 2023-04-06 13:37:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-06 12:37:57 +0100 |
commit | c60a90b73971706f525fc7e3289291636f50caa5 (patch) | |
tree | 7bc697ed727a8e650a0106ec34df9a4912648e8d /util | |
parent | 4cf25c27f89754e0e0310cb430dee0ddd9493c70 (diff) | |
download | libfuse-c60a90b73971706f525fc7e3289291636f50caa5.tar.gz |
Fix MS_LAZYTIME not defined on uclibc and move all MS_* and UMOUNT_* (#753)
as well as <sys/mount.h> inclusion to new fuse_mount_compat.h file.
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/fusermount.c | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/util/fusermount.c b/util/fusermount.c index 7a6bc24..850cf6b 100644 --- a/util/fusermount.c +++ b/util/fusermount.c @@ -24,7 +24,9 @@ #include <mntent.h> #include <sys/wait.h> #include <sys/stat.h> -#include <sys/mount.h> + +#include "fuse_mount_compat.h" + #include <sys/fsuid.h> #include <sys/socket.h> #include <sys/utsname.h> @@ -36,26 +38,6 @@ #define FUSE_DEV "/dev/fuse" -#ifndef MS_DIRSYNC -#define MS_DIRSYNC 128 -#endif -#ifndef MS_REC -#define MS_REC 16384 -#endif -#ifndef MS_PRIVATE -#define MS_PRIVATE (1<<18) -#endif - -#ifndef UMOUNT_DETACH -#define UMOUNT_DETACH 0x00000002 /* Just detach from the tree */ -#endif -#ifndef UMOUNT_NOFOLLOW -#define UMOUNT_NOFOLLOW 0x00000008 /* Don't follow symlink on umount */ -#endif -#ifndef UMOUNT_UNUSED -#define UMOUNT_UNUSED 0x80000000 /* Flag guaranteed to be unused */ -#endif - static const char *progname; static int user_allow_other = 0; |