mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-15 10:10:21 +02:00
Update autoconf-managed cpp symbol HAVE_ST_BLKSIZE
to HAVE_STRUCT_STAT_ST_BLKSIZE. (scm_fport_buffer_add): Update autoconf-managed cpp symbol HAVE_ST_BLKSIZE to HAVE_STRUCT_STAT_ST_BLKSIZE.
This commit is contained in:
parent
6ca50d4204
commit
a4ec214b8d
1 changed files with 17 additions and 17 deletions
|
@ -60,7 +60,7 @@
|
||||||
#else
|
#else
|
||||||
scm_sizet fwrite ();
|
scm_sizet fwrite ();
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_ST_BLKSIZE
|
#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ scm_fport_buffer_add (SCM port, int read_size, int write_size)
|
||||||
if (read_size == -1 || write_size == -1)
|
if (read_size == -1 || write_size == -1)
|
||||||
{
|
{
|
||||||
int default_size;
|
int default_size;
|
||||||
#ifdef HAVE_ST_BLKSIZE
|
#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
default_size = (fstat (fp->fdes, &st) == -1) ? default_buffer_size
|
default_size = (fstat (fp->fdes, &st) == -1) ? default_buffer_size
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue