This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] corelow.c does not need sys/file.h


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a7c9855d033996252fc55349fd3e01670cdd7943

commit a7c9855d033996252fc55349fd3e01670cdd7943
Author: Tom Tromey <tom@tromey.com>
Date:   Mon Jan 21 15:18:50 2019 -0700

    corelow.c does not need sys/file.h
    
    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-22  Tom Tromey  <tom@tromey.com>
    
    	* corelow.c: Do not include sys/file.h.

Diff:
---
 gdb/ChangeLog | 4 ++++
 gdb/corelow.c | 3 ---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 485941a..36a97bd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 2019-01-22  Tom Tromey  <tom@tromey.com>
 
+	* corelow.c: Do not include sys/file.h.
+
+2019-01-22  Tom Tromey  <tom@tromey.com>
+
 	* tui/tui-wingeneral.h: Include gdb_curses.h.
 
 2019-01-22  Tom Tromey  <tom@tromey.com>
diff --git a/gdb/corelow.c b/gdb/corelow.c
index ab32e09..462103a 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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]