This is the mail archive of the insight@sourceware.org mailing list for the Insight 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]

[patch] drop unused sys/ioctl.h include from some gdbtk files


a few files in gdb/gdbtk/generic/ pull in sys/ioctl.h for no reason (that i 
can tell).  they arent actually using ioctl() and this breaks my mingw build.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

2007-07-26  Mike Frysinger  <vapier@gentoo.org>

	* generic/gdbtk-cmds.c (sys/ioctl.h): Remove include.
	* generic/gdbtk-hooks.c (sys/ioctl.h): Likewise.
	* generic/gdbtk.c (sys/ioctl.h): Likewise.

Index: gdb/gdbtk/generic/gdbtk-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-cmds.c,v
retrieving revision 1.97
diff -u -p -r1.97 gdbtk-cmds.c
--- gdb/gdbtk/generic/gdbtk-cmds.c	21 Jun 2007 15:18:51 -0000	1.97
+++ gdb/gdbtk/generic/gdbtk-cmds.c	26 Jul 2007 08:57:01 -0000
@@ -57,7 +57,6 @@
 
 #include <signal.h>
 #include <fcntl.h>
-#include <sys/ioctl.h>
 #include <sys/time.h>
 #include <sys/stat.h>
 
Index: gdb/gdbtk/generic/gdbtk-hooks.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-hooks.c,v
retrieving revision 1.41
diff -u -p -r1.41 gdbtk-hooks.c
--- gdb/gdbtk/generic/gdbtk-hooks.c	23 Dec 2005 18:23:16 -0000	1.41
+++ gdb/gdbtk/generic/gdbtk-hooks.c	26 Jul 2007 08:57:01 -0000
@@ -51,7 +51,6 @@
 
 #include <signal.h>
 #include <fcntl.h>
-#include <sys/ioctl.h>
 #include <sys/time.h>
 
 #include "gdb_string.h"
Index: gdb/gdbtk/generic/gdbtk.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk.c,v
retrieving revision 1.45
diff -u -p -r1.45 gdbtk.c
--- gdb/gdbtk/generic/gdbtk.c	1 Dec 2006 02:09:24 -0000	1.45
+++ gdb/gdbtk/generic/gdbtk.c	26 Jul 2007 08:57:01 -0000
@@ -49,7 +49,6 @@
 
 #include <fcntl.h>
 #include <sys/stat.h>
-#include <sys/ioctl.h>
 #include <sys/time.h>
 #include <signal.h>
 

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