aboutsummaryrefslogtreecommitdiffstats
path: root/posix
diff options
context:
space:
mode:
Diffstat (limited to 'posix')
-rw-r--r--posix/ChangeLog5
-rw-r--r--posix/gawkmisc.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/posix/ChangeLog b/posix/ChangeLog
index 0f9cc0a0..67fdb42d 100644
--- a/posix/ChangeLog
+++ b/posix/ChangeLog
@@ -1,3 +1,8 @@
+2013-05-27 Arnold D. Robbins <arnold@skeeve.com>
+
+ * gawkmisc.c (optimal_bufsize): Change check from HAVE_ST_BLKSIZE
+ to HAVE_STRUCT_STAT_ST_BLKSIZE.
+
2013-05-09 Arnold D. Robbins <arnold@skeeve.com>
* 4.1.0: Release tar ball made.
diff --git a/posix/gawkmisc.c b/posix/gawkmisc.c
index 90bf1c38..90a41e4e 100644
--- a/posix/gawkmisc.c
+++ b/posix/gawkmisc.c
@@ -127,7 +127,7 @@ optimal_bufsize(int fd, struct stat *stb)
* guess. We use stdio's BUFSIZ, since that is what it was
* meant for in the first place.
*/
-#ifdef HAVE_ST_BLKSIZE
+#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE
#define DEFBLKSIZE (stb->st_blksize > 0 ? stb->st_blksize : BUFSIZ)
#else
#define DEFBLKSIZE BUFSIZ