summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scp.c b/scp.c
index b5cb541b4..fb4d3096c 100644
--- a/scp.c
+++ b/scp.c
@@ -1040,7 +1040,7 @@ allocbuf(bp, fd, blksize)
1040 int fd, blksize; 1040 int fd, blksize;
1041{ 1041{
1042 size_t size; 1042 size_t size;
1043#ifdef HAVE_ST_BLKSIZE 1043#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE
1044 struct stat stb; 1044 struct stat stb;
1045 1045
1046 if (fstat(fd, &stb) < 0) { 1046 if (fstat(fd, &stb) < 0) {
@@ -1052,9 +1052,9 @@ allocbuf(bp, fd, blksize)
1052 else 1052 else
1053 size = blksize + (stb.st_blksize - blksize % stb.st_blksize) % 1053 size = blksize + (stb.st_blksize - blksize % stb.st_blksize) %
1054 stb.st_blksize; 1054 stb.st_blksize;
1055#else /* HAVE_ST_BLKSIZE */ 1055#else /* HAVE_STRUCT_STAT_ST_BLKSIZE */
1056 size = blksize; 1056 size = blksize;
1057#endif /* HAVE_ST_BLKSIZE */ 1057#endif /* HAVE_STRUCT_STAT_ST_BLKSIZE */
1058 if (bp->cnt >= size) 1058 if (bp->cnt >= size)
1059 return (bp); 1059 return (bp);
1060 if (bp->buf == NULL) 1060 if (bp->buf == NULL)