mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
Define ENABLE_VFS_NET in C code not in M4 one.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
965e9d6bff
commit
da8e14bcbb
@ -26,6 +26,10 @@ typedef enum
|
||||
|
||||
#ifdef ENABLE_VFS
|
||||
|
||||
#if defined (ENABLE_VFS_FTP) || defined (ENABLE_VFS_FISH) || defined (ENABLE_VFS_SMB)
|
||||
#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.
|
||||
@ -36,7 +40,7 @@ typedef void (*fill_names_f) (const char *);
|
||||
|
||||
extern int vfs_timeout;
|
||||
|
||||
#ifdef USE_NETCODE
|
||||
#ifdef ENABLE_VFS_NET
|
||||
extern int use_netrc;
|
||||
#endif
|
||||
|
||||
|
@ -73,9 +73,6 @@ AC_DEFUN([AC_MC_VFS_CHECKS],
|
||||
|
||||
if test x"$enable_vfs_ftp" = x"yes" -o x"$enable_vfs_fish" = x"yes" -o x"$enable_vfs_smb" = x"yes"; then
|
||||
MC_ENABLE_VFS_NET
|
||||
if test x"$enable_vfs_net" = x"yes"; then
|
||||
AC_DEFINE([ENABLE_VFS_NET], [1], [Support for network filesystems])
|
||||
fi
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL([ENABLE_VFS_NET], [test x"$enable_vfs_net" = x"yes"])
|
||||
|
Loading…
Reference in New Issue
Block a user