This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 9/9] corelow.c does not need sys/file.h
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Tue, 22 Jan 2019 01:04:45 -0700
- Subject: [PATCH 9/9] corelow.c does not need sys/file.h
- References: <20190122080445.32658-1-tom@tromey.com>
I did not see any reason that corelow.c should include <sys/file.h>.
The provided explanatory comment seems to be wrong. This patch
removes the include.
2019-01-21 Tom Tromey <tom@tromey.com>
* corelow.c: Do not include sys/file.h.
---
gdb/ChangeLog | 4 ++++
gdb/corelow.c | 3 ---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/gdb/corelow.c b/gdb/corelow.c
index ab32e09828..462103a80b 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -21,9 +21,6 @@
#include "arch-utils.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 "infrun.h"
--
2.17.2