diff options
author | Daniel Golle <daniel@makrotopia.org> | 2015-03-29 19:28:41 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2015-03-29 19:29:34 +0200 |
commit | 8f76aa4626f34dd1955f192213b26fd4ad8e4a92 (patch) | |
tree | 3dbfcd3fe10ad070b24c238e0f5cff5c51731dfc | |
parent | e6825ac677220aaa7ee9d56fe7d0e7fcd2a655f8 (diff) |
ntfs-3g: fix build with musl when using internal libfuse
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r-- | utils/ntfs-3g/patches/001-fuseint-fix-path-mounted-on-musl.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/utils/ntfs-3g/patches/001-fuseint-fix-path-mounted-on-musl.patch b/utils/ntfs-3g/patches/001-fuseint-fix-path-mounted-on-musl.patch new file mode 100644 index 000000000..577c89bf2 --- /dev/null +++ b/utils/ntfs-3g/patches/001-fuseint-fix-path-mounted-on-musl.patch @@ -0,0 +1,30 @@ +Index: ntfs-3g-2014.2.15-1-fuseint/libfuse-lite/fusermount.c +=================================================================== +--- ntfs-3g-2014.2.15-1-fuseint.orig/libfuse-lite/fusermount.c ++++ ntfs-3g-2014.2.15-1-fuseint/libfuse-lite/fusermount.c +@@ -36,6 +36,10 @@ + + #define FUSE_DEV_NEW "/dev/fuse" + ++#ifndef _PATH_MOUNTED ++#define _PATH_MOUNTED "/proc/mounts" ++#endif ++ + #ifndef MS_DIRSYNC + #define MS_DIRSYNC 128 + #endif +Index: ntfs-3g-2014.2.15-1-fuseint/libfuse-lite/mount_util.c +=================================================================== +--- ntfs-3g-2014.2.15-1-fuseint.orig/libfuse-lite/mount_util.c ++++ ntfs-3g-2014.2.15-1-fuseint/libfuse-lite/mount_util.c +@@ -255,6 +255,10 @@ int fuse_mnt_check_fuseblk(void) + + #else /* __SOLARIS__ */ + ++#ifndef _PATH_MOUNTED ++#define _PATH_MOUNTED "/proc/mounts" ++#endif /* _PATH_MOUNTED */ ++ + static int mtab_needs_update(const char *mnt) + { + int res; |