summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFCmd.c
diff options
context:
space:
mode:
authorstwo <stwo>2009-11-25 14:25:54 (GMT)
committerstwo <stwo>2009-11-25 14:25:54 (GMT)
commit9a8e3c9cf2c11e1d73b27f3d278b80390a3224e0 (patch)
tree65356e424ff3fdf65d1538967f0cd791fbece3c2 /unix/tclUnixFCmd.c
parentbfe62b221470f6cabde3d6a6a378627187e9f33b (diff)
downloadtcl-9a8e3c9cf2c11e1d73b27f3d278b80390a3224e0.zip
tcl-9a8e3c9cf2c11e1d73b27f3d278b80390a3224e0.tar.gz
tcl-9a8e3c9cf2c11e1d73b27f3d278b80390a3224e0.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.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c
index e450589..a1ed50f 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.73 2009/08/02 12:08:17 dkf Exp $
+ * RCS: @(#) $Id: tclUnixFCmd.c,v 1.74 2009/11/25 14:25:57 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
@@ -547,7 +547,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)
{
@@ -561,13 +561,14 @@ TclUnixCopyFile(
}
#else
blockSize = DEFAULT_COPY_BLOCK_SIZE;
-#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) {