Browse Source

* cpio.c: Include <config.h> before everything else.
* direntry.c: Likewise.
* fish.c: Likewise.
* ftpfs.c: Likewise.
* local.c: Likewise.
* tar.c: Likewise.
* utilvfs.h: Don't include <config.h> - it should be included
in all C files instead.
* xdirentry.h: Likewise.

Pavel Roskin 24 years ago
parent
commit
680f3f7ed2
9 changed files with 22 additions and 5 deletions
  1. 12 0
      vfs/ChangeLog
  2. 1 0
      vfs/cpio.c
  3. 3 1
      vfs/direntry.c
  4. 2 0
      vfs/fish.c
  5. 1 0
      vfs/ftpfs.c
  6. 1 1
      vfs/local.c
  7. 2 1
      vfs/tar.c
  8. 0 1
      vfs/utilvfs.h
  9. 0 1
      vfs/xdirentry.h

+ 12 - 0
vfs/ChangeLog

@@ -1,3 +1,15 @@
+2001-06-25  Pavel Roskin  <proski@gnu.org>
+
+	* cpio.c: Include <config.h> before everything else.
+	* direntry.c: Likewise.
+	* fish.c: Likewise.
+	* ftpfs.c: Likewise.
+	* local.c: Likewise.
+	* tar.c: Likewise.
+	* utilvfs.h: Don't include <config.h> - it should be included
+	in all C files instead.
+	* xdirentry.h: Likewise.
+
 2001-06-19  Pavel Roskin  <proski@gnu.org>
 
 	* local.c (local_telldir): Warn and abort if telldir() is not

+ 1 - 0
vfs/cpio.c

@@ -19,6 +19,7 @@
    License along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
+#include <config.h>
 #include "xdirentry.h"
 #include "utilvfs.h"
 #include <glib.h>

+ 3 - 1
vfs/direntry.c

@@ -26,7 +26,7 @@
  * Paths here do _not_ begin with '/', so root directory of
  * archive/site is simply "". Beware. */
 
-static volatile int total_inodes = 0, total_entries = 0;
+#include <config.h>
 
 #include "utilvfs.h"
 #include "xdirentry.h"
@@ -34,6 +34,8 @@ static volatile int total_inodes = 0, total_entries = 0;
 
 #define CALL(x) if (MEDATA->x) MEDATA->x
 
+static volatile int total_inodes = 0, total_entries = 0;
+
 vfs_s_inode *
 vfs_s_new_inode (vfs *me, vfs_s_super *super, struct stat *initstat)
 {

+ 2 - 0
vfs/fish.c

@@ -36,6 +36,8 @@
 
 /* Define this if your ssh can take -I option */
 
+#include <config.h>
+
 #undef HAVE_HACKED_SSH
 
 #include "utilvfs.h"

+ 1 - 0
vfs/ftpfs.c

@@ -56,6 +56,7 @@ What to do with this?
 
 /* Namespace pollution: horrible */
 
+#include <config.h>
 #include <sys/types.h>          /* POSIX-required by sys/socket.h and netdb.h */
 #include <netdb.h>		/* struct hostent */
 #include <sys/socket.h>		/* AF_INET */

+ 1 - 1
vfs/local.c

@@ -1,3 +1,4 @@
+#include <config.h>
 #include <errno.h>
 #include <sys/types.h>
 #include <unistd.h>
@@ -9,7 +10,6 @@
 #include "utilvfs.h"
 
 #include "vfs.h"
-#include <config.h>
 #include "local.h"
 
 /* Note: Some of this functions are not static. This has rather good

+ 2 - 1
vfs/tar.c

@@ -20,9 +20,10 @@
 
 /* Namespace: vfs_tarfs_ops */
 
-#include "xdirentry.h"
+#include <config.h>
 #include <errno.h>
 
+#include "xdirentry.h"
 #include "utilvfs.h"
 
 #include "../src/dialog.h"	/* For MSG_ERROR */

+ 0 - 1
vfs/utilvfs.h

@@ -1,4 +1,3 @@
-#include <config.h>
 #include "../src/global.h"
 
 #include "../src/tty.h"		/* enable/disable interrupt key */

+ 0 - 1
vfs/xdirentry.h

@@ -3,7 +3,6 @@
 
 /* $Id$ */
 
-#include <config.h>
 #include <stdio.h>
 #include <ctype.h>
 #include <string.h>