diff options
| author | stwo <stwo> | 2009-11-25 14:31:39 (GMT) | 
|---|---|---|
| committer | stwo <stwo> | 2009-11-25 14:31:39 (GMT) | 
| commit | 8263c49fbdb63c93034274c876cf5a940599b252 (patch) | |
| tree | c9d4c690bd9d9989a78e5d3c197bb59d75b68ca4 /unix/tclUnixFCmd.c | |
| parent | eaaa5034bff48b8fd6162def1dd4b0020b7c46cc (diff) | |
| download | tcl-8263c49fbdb63c93034274c876cf5a940599b252.zip tcl-8263c49fbdb63c93034274c876cf5a940599b252.tar.gz tcl-8263c49fbdb63c93034274c876cf5a940599b252.tar.bz2 | |
[Patch 2892871]: Remove unneeded AC_STRUCT_TIMEZONE and use
AC_CHECK_MEMBERS([struct stat.st_blksize]) instead of AC_STRUCT_ST_BLKSIZE.
Diffstat (limited to 'unix/tclUnixFCmd.c')
| -rw-r--r-- | unix/tclUnixFCmd.c | 17 | 
1 files changed, 9 insertions, 8 deletions
| diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c index e517e6f..c42c370 100644 --- a/unix/tclUnixFCmd.c +++ b/unix/tclUnixFCmd.c @@ -10,7 +10,7 @@   * See the file "license.terms" for information on usage and redistribution of   * this file, and for a DISCLAIMER OF ALL WARRANTIES.   * - * RCS: @(#) $Id: tclUnixFCmd.c,v 1.65.2.1 2009/08/02 12:15:04 dkf Exp $ + * RCS: @(#) $Id: tclUnixFCmd.c,v 1.65.2.2 2009/11/25 14:31:40 stwo Exp $   *   * Portions of this code were derived from NetBSD source code which has the   * following copyright notice: @@ -49,7 +49,7 @@  #include "tclInt.h"  #include <utime.h>  #include <grp.h> -#ifndef HAVE_ST_BLKSIZE +#ifndef HAVE_STRUCT_STAT_ST_BLKSIZE  #ifndef NO_FSTATFS  #include <sys/statfs.h>  #endif @@ -544,7 +544,7 @@ TclUnixCopyFile(       * that's likely to be fairly efficient anyway.       */ -#ifdef HAVE_ST_BLKSIZE +#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE      blockSize = statBufPtr->st_blksize;  #elif !defined(NO_FSTATFS)      { @@ -558,13 +558,14 @@ TclUnixCopyFile(      }  #else      blockSize = 4096; -#endif /* HAVE_ST_BLKSIZE */ +#endif /* HAVE_STRUCT_STAT_ST_BLKSIZE */      /* -     * [SF Tcl Bug 1586470] Even if we HAVE_ST_BLKSIZE, there are filesystems -     * which report a bogus value for the blocksize. An example is the Andrew -     * Filesystem (afs), reporting a blocksize of 0. When detecting such a -     * situation we now simply fall back to a hardwired default size. +     * [SF Tcl Bug 1586470] Even if we HAVE_STRUCT_STAT_ST_BLKSIZE, there are +     * filesystems which report a bogus value for the blocksize. An example +     * is the Andrew Filesystem (afs), reporting a blocksize of 0. When +     * detecting such a situation we now simply fall back to a hardwired +     * default size.       */      if (blockSize <= 0) { | 
