From 1dd727e9e932e53956fe4fc0cde511c39cc66f38 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 30 Dec 2003 06:52:09 +0000 Subject: * remote-fileio.c (remote_fileio_to_fio_stat) (remote_fileio_func_fstat) [HAVE_STRUCT_STAT_ST_BLOCKS]: Support systems that don't have `st_blocks' member in `struct stat'. * configure.in (HAVE_STRUCT_STAT_ST_BLOCKS): Ditto. --- gdb/configure.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/configure.in') diff --git a/gdb/configure.in b/gdb/configure.in index d27470c..f0f65c2 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -383,6 +383,12 @@ AC_CHECK_HEADERS(curses.h ncurses.h term.h) # unconditionally, so what's the point in checking these? AC_CHECK_HEADERS(ctype.h time.h) +# remote-fileio.c needs st_blocks +AC_CHECK_MEMBER(struct stat.st_blocks, + [AC_DEFINE(HAVE_STRUCT_STAT_ST_BLOCKS, 1, + [Define if struct stat has st_blocks member.])], + [#include ]) + # ------------------------- # # Checks for declarations. # # ------------------------- # -- cgit v1.1