corelow.c does not need sys/file.h
authorTom Tromey <tom@tromey.com>
Mon, 21 Jan 2019 22:18:50 +0000 (15:18 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 23 Jan 2019 03:35:59 +0000 (20:35 -0700)
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.

gdb/ChangeLog
gdb/corelow.c

index 485941a02d7541336b9596f0fb065d4e885bc7f4..36a97bdf04be92df23cf698a0a9c5defe82e64c8 100644 (file)
@@ -1,3 +1,7 @@
+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.
index ab32e09828b078de551e284f330f0aa2239dbfdf..462103a80b27d6d6a01f850a58234cee888adbec 100644 (file)
@@ -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"
This page took 0.028555 seconds and 4 git commands to generate.