From fc24370e47de795c93e5be9bcc1bcebf739a0b67 Mon Sep 17 00:00:00 2001 From: Michael Sokolov Date: Wed, 14 Feb 2001 18:48:40 +0000 Subject: [PATCH] * configure.in (AC_CHECK_HEADERS): Add sys/file.h. * configure, config.in: Regenerate. * corelow.c: Include if present. --- gdb/ChangeLog | 6 ++++++ gdb/config.in | 3 +++ gdb/configure | 2 +- gdb/configure.in | 5 +++-- gdb/corelow.c | 5 ++++- 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 95d879c..215fc14 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-02-14 Michael Sokolov + + * configure.in (AC_CHECK_HEADERS): Add sys/file.h. + * configure, config.in: Regenerate. + * corelow.c: Include if present. + 2001-02-14 Andrew Cagney * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only diff --git a/gdb/config.in b/gdb/config.in index 402e9d0..b66c736 100644 --- a/gdb/config.in +++ b/gdb/config.in @@ -309,6 +309,9 @@ /* Define if you have the header file. */ #undef HAVE_SYS_DIR_H +/* Define if you have the header file. */ +#undef HAVE_SYS_FILE_H + /* Define if you have the header file. */ #undef HAVE_SYS_IOCTL_H diff --git a/gdb/configure b/gdb/configure index 96765cc..9032d82 100755 --- a/gdb/configure +++ b/gdb/configure @@ -3384,7 +3384,7 @@ for ac_hdr in ctype.h endian.h link.h thread_db.h proc_service.h \ string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \ term.h termio.h termios.h unistd.h wait.h sys/wait.h \ wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \ - time.h sys/ioctl.h sys/user.h \ + time.h sys/file.h sys/ioctl.h sys/user.h \ dirent.h sys/ndir.h sys/dir.h ndir.h \ curses.h ncurses.h \ poll.h sys/poll.h diff --git a/gdb/configure.in b/gdb/configure.in index 4c09049..ba2ced9 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -1,5 +1,6 @@ dnl Autoconf configure script for GDB, the GNU debugger. -dnl Copyright 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. +dnl Copyright 1995, 1996, 1997, 1998, 1999, 2000, +dnl 2001 Free Software Foundation, Inc. dnl dnl This file is part of GDB. dnl @@ -122,7 +123,7 @@ AC_CHECK_HEADERS(ctype.h endian.h link.h thread_db.h proc_service.h \ string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \ term.h termio.h termios.h unistd.h wait.h sys/wait.h \ wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \ - time.h sys/ioctl.h sys/user.h \ + time.h sys/file.h sys/ioctl.h sys/user.h \ dirent.h sys/ndir.h sys/dir.h ndir.h \ curses.h ncurses.h \ poll.h sys/poll.h) diff --git a/gdb/corelow.c b/gdb/corelow.c index 78e50ae..05baf33 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -1,5 +1,5 @@ /* Core dump and executable file functions below target vector, for GDB. - Copyright 1986, 87, 89, 91, 92, 93, 94, 95, 96, 97, 1998, 2000 + Copyright 1986, 87, 89, 91, 92, 93, 94, 95, 96, 97, 1998, 2000, 2001 Free Software Foundation, Inc. This file is part of GDB. @@ -24,6 +24,9 @@ #include #include #include +#ifdef HAVE_SYS_FILE_H +#include /* needed for F_OK and friends */ +#endif #include "frame.h" /* required by inferior.h */ #include "inferior.h" #include "symtab.h" -- 2.7.4