mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
* tcputil.c [!WITH_MCFS]: Disable mcfs related code.
* mcfs.c [!WITH_MCFS]: Disable all code.
This commit is contained in:
parent
4b15a62d38
commit
50ac0519dd
@ -1,3 +1,8 @@
|
|||||||
|
2002-09-19 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||||
|
|
||||||
|
* tcputil.c [!WITH_MCFS]: Disable mcfs related code.
|
||||||
|
* mcfs.c [!WITH_MCFS]: Disable all code.
|
||||||
|
|
||||||
2002-09-16 Andrew V. Samoilov <sav@bcs.zp.ua>
|
2002-09-16 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||||
|
|
||||||
* smbfs.c: Don't define BOOL_DEFINED to fix compilation on
|
* smbfs.c: Don't define BOOL_DEFINED to fix compilation on
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
/* Namespace: exports mcfs_vfs_ops, tcp_invalidate_socket */
|
/* Namespace: exports mcfs_vfs_ops, tcp_invalidate_socket */
|
||||||
|
|
||||||
|
#ifdef WITH_MCFS
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@ -59,7 +60,6 @@ static struct _mcfs_connection {
|
|||||||
int version;
|
int version;
|
||||||
} mcfs_connections [MCFS_MAX_CONNECTIONS];
|
} mcfs_connections [MCFS_MAX_CONNECTIONS];
|
||||||
|
|
||||||
#ifdef WITH_MCFS
|
|
||||||
|
|
||||||
#define mcserver_port 9876
|
#define mcserver_port 9876
|
||||||
|
|
||||||
@ -1120,8 +1120,6 @@ vfs vfs_mcfs_ops = {
|
|||||||
MMAPNULL
|
MMAPNULL
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* WITH_MCFS */
|
|
||||||
|
|
||||||
|
|
||||||
/* FIXME: This part should go to another c module, perhaps tcp.c */
|
/* FIXME: This part should go to another c module, perhaps tcp.c */
|
||||||
|
|
||||||
@ -1162,3 +1160,5 @@ void tcp_invalidate_socket (int sock)
|
|||||||
mcfs_invalidate_socket (sock);
|
mcfs_invalidate_socket (sock);
|
||||||
}
|
}
|
||||||
/* FIXME end: 'cause it is used not only by mcfs */
|
/* FIXME end: 'cause it is used not only by mcfs */
|
||||||
|
|
||||||
|
#endif /* WITH_MCFS */
|
||||||
|
@ -56,6 +56,7 @@ extern void vfs_die (char *);
|
|||||||
|
|
||||||
int got_sigpipe;
|
int got_sigpipe;
|
||||||
|
|
||||||
|
#ifdef WITH_MCFS
|
||||||
/* Reads a block on dest for len bytes from sock */
|
/* Reads a block on dest for len bytes from sock */
|
||||||
/* Returns a boolean indicating the success status */
|
/* Returns a boolean indicating the success status */
|
||||||
int socket_read_block (int sock, char *dest, int len)
|
int socket_read_block (int sock, char *dest, int len)
|
||||||
@ -245,6 +246,7 @@ void rpc_add_get_callback (int sock, void (*cback)(int))
|
|||||||
new->link = sock_callbacks;
|
new->link = sock_callbacks;
|
||||||
sock_callbacks = new;
|
sock_callbacks = new;
|
||||||
}
|
}
|
||||||
|
#endif /* WITH_MCFS */
|
||||||
|
|
||||||
static void sig_pipe (int unused)
|
static void sig_pipe (int unused)
|
||||||
{
|
{
|
||||||
@ -262,6 +264,7 @@ void tcp_init (void)
|
|||||||
sigaction (SIGPIPE, &sa, NULL);
|
sigaction (SIGPIPE, &sa, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WITH_MCFS
|
||||||
int get_remote_port (struct sockaddr_in *sin, int *version)
|
int get_remote_port (struct sockaddr_in *sin, int *version)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_PMAP_GETMAPS
|
#ifdef HAVE_PMAP_GETMAPS
|
||||||
@ -289,5 +292,5 @@ int get_remote_port (struct sockaddr_in *sin, int *version)
|
|||||||
*version = 1;
|
*version = 1;
|
||||||
return mcserver_port;
|
return mcserver_port;
|
||||||
}
|
}
|
||||||
|
#endif /* WITH_MCFS */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user