public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [patch] drop unused sys/ioctl.h include from some gdbtk files
@ 2007-07-27 18:01 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2007-07-27 18:01 UTC (permalink / raw)
  To: insight


[-- Attachment #1.1: Type: text/plain, Size: 164 bytes --]

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 #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

[-- Attachment #2: gdb-gdbtk-no-sys-ioctl.patch --]
[-- Type: text/x-diff, Size: 1620 bytes --]

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>
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-27 18:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-27 18:01 [patch] drop unused sys/ioctl.h include from some gdbtk files Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).