Add MS_NOSYMFOLLOW compat definition
authorBernd Schubert <bschubert@ddn.com>
Mon, 29 Jul 2024 17:56:47 +0000 (19:56 +0200)
committerBernd Schubert <bernd.schubert@fastmail.fm>
Mon, 29 Jul 2024 20:22:44 +0000 (22:22 +0200)
After commit 54466d2c426b compilation was failing on my debian VM.

include/fuse_mount_compat.h

index 0142b515017f3ee76f3b6364fb73c0eaa3498ea2..be8d576cf959fba7acb25440fafd43f7e973964e 100644 (file)
 #include <sys/mount.h>
 
 /* Some libc don't define MS_*, so define them manually
- * (values taken from https://elixir.bootlin.com/linux/v4.0.9/source/include/uapi/linux/fs.h#L68 on)
+ * (values taken from https://elixir.bootlin.com/linux/v6.10/source/include/uapi/linux/mount.h#L13 on)
  */
 #ifndef MS_DIRSYNC
 #define MS_DIRSYNC     128
 #endif
+
+#ifndef MS_NOSYMFOLLOW
+#define MS_NOSYMFOLLOW 256
+#endif
+
 #ifndef MS_REC
 #define MS_REC         16384
 #endif
+
 #ifndef MS_PRIVATE
 #define MS_PRIVATE     (1<<18)
 #endif
+
 #ifndef MS_LAZYTIME
 #define MS_LAZYTIME    (1<<25)
 #endif