Skip to content

Commit

Permalink
Merge branch '4420_sftp_network_vfs'
Browse files Browse the repository at this point in the history
* 4420_sftp_network_vfs:
  Ticket #4420: fail to build with only SFTP network VFS enabled.
  • Loading branch information
aborodin committed Dec 30, 2022
2 parents 995b61d + b69168c commit 5583c3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions lib/vfs/vfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@

#define VFS_CLASS(a) ((struct vfs_class *) (a))

#if defined (ENABLE_VFS_FTP) || defined (ENABLE_VFS_FISH)
#define ENABLE_VFS_NET 1
#endif

/**
* This is the type of callback function passed to vfs_fill_names.
* It gets the name of the virtual file system as its first argument.
Expand Down
3 changes: 2 additions & 1 deletion m4.include/mc-vfs.m4
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ AC_DEFUN([mc_ENABLE_VFS_NET],
AC_CHECK_RPC
enable_vfs_net=yes
AC_DEFINE(ENABLE_VFS_NET, [1], [Define to enable network VFSes support])
fi
])

Expand Down Expand Up @@ -79,7 +80,7 @@ AC_DEFUN([mc_VFS_CHECKS],
AM_CONDITIONAL(ENABLE_VFS, [test x"$enable_vfs" = x"yes"])
if test x"$enable_vfs_ftp" = x"yes" -o x"$enable_vfs_fish" = x"yes"; then
if test x"$enable_vfs_ftp" = x"yes" -o x"$enable_vfs_fish" = x"yes" -o x"$enable_vfs_sftp" = x"yes"; then
mc_ENABLE_VFS_NET
fi
Expand Down

0 comments on commit 5583c3d

Please sign in to comment.