aboutsummaryrefslogtreecommitdiff
path: root/gdb/corelow.c
diff options
context:
space:
mode:
authorMichael Sokolov <msokolov@ivan.harhan.org>2001-02-14 18:48:40 +0000
committerMichael Sokolov <msokolov@ivan.harhan.org>2001-02-14 18:48:40 +0000
commitfc24370e47de795c93e5be9bcc1bcebf739a0b67 (patch)
treec7046ad51920089a908abb896eb5fbdda6e55342 /gdb/corelow.c
parent24174db0faad54ea0bf4696a946b3541b1bbceb0 (diff)
downloadfsf-binutils-gdb-fc24370e47de795c93e5be9bcc1bcebf739a0b67.zip
fsf-binutils-gdb-fc24370e47de795c93e5be9bcc1bcebf739a0b67.tar.gz
fsf-binutils-gdb-fc24370e47de795c93e5be9bcc1bcebf739a0b67.tar.bz2
* configure.in (AC_CHECK_HEADERS): Add sys/file.h.
* configure, config.in: Regenerate. * corelow.c: Include <sys/file.h> if present.
Diffstat (limited to 'gdb/corelow.c')
-rw-r--r--gdb/corelow.c5
1 files changed, 4 insertions, 1 deletions
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 <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"