X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fsystem.h;h=d82e8cd38e7dad94420110dc200823dd44caaa18;hb=0273b1ae0945ead45f96ae5b82700d793cd96639;hp=542015094248dd5914adbb19df6453c39b31ac18;hpb=006d3dc1d5190e935791d5eddf2e3e678dd4e00f;p=chaz%2Ftar diff --git a/src/system.h b/src/system.h index 5420150..d82e8cd 100644 --- a/src/system.h +++ b/src/system.h @@ -339,28 +339,17 @@ extern int errno; size is greater than 512 bytes; so ST_BLKSIZE code below, in preparation for some cleanup in this area, later. */ -/* Get or fake the disk device blocksize. Usually defined by sys/param.h - (if at all). */ - -#if !defined(DEV_BSIZE) && defined(BSIZE) -# define DEV_BSIZE BSIZE -#endif -#if !defined(DEV_BSIZE) && defined(BBSIZE) /* SGI */ -# define DEV_BSIZE BBSIZE -#endif -#ifndef DEV_BSIZE -# define DEV_BSIZE 4096 -#endif - /* Extract or fake data from a `struct stat'. ST_BLKSIZE gives the optimal I/O blocksize for the file, in bytes. Some systems, like Sequents, return st_blksize of 0 on pipes. */ +#define DEFAULT_ST_BLKSIZE 512 + #if !HAVE_ST_BLKSIZE -# define ST_BLKSIZE(Statbuf) DEV_BSIZE +# define ST_BLKSIZE(Statbuf) DEFAULT_ST_BLKSIZE #else # define ST_BLKSIZE(Statbuf) \ - ((Statbuf).st_blksize > 0 ? (Statbuf).st_blksize : DEV_BSIZE) + ((Statbuf).st_blksize > 0 ? (Statbuf).st_blksize : DEFAULT_ST_BLKSIZE) #endif /* Extract or fake data from a `struct stat'. ST_NBLOCKS gives the @@ -487,10 +476,17 @@ char *getenv (); #endif #include -#ifndef time +#if defined(HAVE_SYS_TIME_H) && defined(TIME_WITH_SYS_TIME) +# include +#endif +#if ! HAVE_DECL_TIME time_t time (); #endif +#ifdef HAVE_UTIME_H +# include +#endif + /* Library modules. */ #include @@ -522,5 +518,3 @@ time_t time (); #if XENIX # include #endif - -