* vfs.h: Remove all tricks with system headers, they all should

be in global.h.
* cpio.c: Include utilvfs.h earlier.
* tar.c: Likewise.
This commit is contained in:
Pavel Roskin 2002-01-21 21:26:49 +00:00
parent 7b8b4394d5
commit 6975fdf5e8
4 changed files with 8 additions and 32 deletions

View File

@ -1,5 +1,10 @@
2002-01-21 Pavel Roskin <proski@gnu.org>
* vfs.h: Remove all tricks with system headers, they all should
be in global.h.
* cpio.c: Include utilvfs.h earlier.
* tar.c: Likewise.
* vfs.h: Include dirent.h only if it's present.
2002-01-21 Andrew V. Samoilov <kai@cmail.ru>

View File

@ -20,10 +20,10 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include <config.h>
#include "xdirentry.h"
#include "utilvfs.h"
#include <glib.h>
#include <errno.h>
#include "utilvfs.h"
#include "xdirentry.h"
/* #include "utilvfs.h" */

View File

@ -23,8 +23,8 @@
#include <config.h>
#include <errno.h>
#include "xdirentry.h"
#include "utilvfs.h"
#include "xdirentry.h"
#include "../src/dialog.h" /* For MSG_ERROR */
#include "tar.h"

View File

@ -1,35 +1,6 @@
#ifndef __VFS_H
#define __VFS_H
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_DIRENT_H
# include <dirent.h>
#endif
#ifdef HAVE_SYS_TIMEB_H
# include <sys/timeb.h>
#endif
#ifdef TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
#ifdef HAVE_UTIME_H
# include <utime.h>
#else
struct utimbuf {
time_t actime;
time_t modtime;
};
#endif
#ifdef USE_VFS
#ifdef HAVE_MMAP
#include <sys/mman.h>