* configure, config.in: Regenerate.
* corelow.c: Include <sys/file.h> if present.
+2001-02-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
+
+ * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
+ * configure, config.in: Regenerate.
+ * corelow.c: Include <sys/file.h> if present.
+
2001-02-14 Andrew Cagney <ac131313@redhat.com>
* inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
/* Define if you have the <sys/dir.h> header file. */
#undef HAVE_SYS_DIR_H
+/* Define if you have the <sys/file.h> header file. */
+#undef HAVE_SYS_FILE_H
+
/* Define if you have the <sys/ioctl.h> header file. */
#undef HAVE_SYS_IOCTL_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
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
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)
/* 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.
#include <errno.h>
#include <signal.h>
#include <fcntl.h>
+#ifdef HAVE_SYS_FILE_H
+#include <sys/file.h> /* needed for F_OK and friends */
+#endif
#include "frame.h" /* required by inferior.h */
#include "inferior.h"
#include "symtab.h"