Browse Source

* Makefile.am: Compile utilvfs.c even without USE_VFS_NET.
* utilvfs.c (vfs_split_url): Only compile with USE_NETCODE
defined.

Pavel Roskin 21 years ago
parent
commit
6b4f397f5b
3 changed files with 10 additions and 2 deletions
  1. 6 0
      vfs/ChangeLog
  2. 2 2
      vfs/Makefile.am
  3. 2 0
      vfs/utilvfs.c

+ 6 - 0
vfs/ChangeLog

@@ -1,3 +1,9 @@
+2003-10-29  Pavel Roskin  <proski@gnu.org>
+
+	* Makefile.am: Compile utilvfs.c even without USE_VFS_NET.
+	* utilvfs.c (vfs_split_url): Only compile with USE_NETCODE
+	defined.
+
 2003-10-28  Pavel Roskin  <proski@gnu.org>
 
 	* fish.c (fish_fh_open): Use vfs_mkstemps() for write buffers as

+ 2 - 2
vfs/Makefile.am

@@ -19,6 +19,7 @@ BASICFILES = 			\
 	local.c 		\
 	tar.c			\
 	sfs.c			\
+	utilvfs.c		\
 	vfs.c
 
 VFSHDRS = 			\
@@ -43,8 +44,7 @@ if USE_UNDEL_FS
 UNDEL_FILES = $(UNDELFILES)
 endif
 
-NETFILES = tcputil.c fish.c ftpfs.c mcfs.c mcfsutil.c utilvfs.c \
-	$(SMB_NETFILES)
+NETFILES = tcputil.c fish.c ftpfs.c mcfs.c mcfsutil.c $(SMB_NETFILES)
 
 NONETFILES = $(BASICFILES) $(UNDEL_FILES)
 

+ 2 - 0
vfs/utilvfs.c

@@ -40,6 +40,7 @@
  * host.
  */
 
+#ifdef USE_NETCODE
 char *
 vfs_split_url (const char *path, char **host, char **user, int *port,
 	       char **pass, int default_port, int flags)
@@ -128,6 +129,7 @@ vfs_split_url (const char *path, char **host, char **user, int *port,
     g_free (pcopy);
     return retval;
 }
+#endif				/* USE_NETCODE */
 
 /*
  * Look up a user or group name from a uid/gid, maintaining a cache.