From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Kettenis To: gdb-patches@sources.redhat.com Subject: [PATCH] Get rid of redundant inclusion of Date: Fri, 24 Aug 2001 05:21:00 -0000 Message-id: <200108241221.f7OCLeE22049@delius.kettenis.local> X-SW-Source: 2001-08/msg00276.html Another step in reducing xm.h. We already include from "defs.h". No need to do it again from xm.h. Tested on sparc-sun-solaris2.6 (which includes config/xm-sysv4.h). Installed as an obvious fix (head only). Mark Index: ChangeLog from Mark Kettenis * config/xm-lynx.h, config/xm-nbsd.h, config/xm-sysv4.h, config/i386/xm-i386aix.h, config/m68k/xm-dpx2.h: Remove redundant inclusion of . Index: config/xm-lynx.h =================================================================== RCS file: /cvs/src/src/gdb/config/xm-lynx.h,v retrieving revision 1.2 diff -u -p -r1.2 xm-lynx.h --- config/xm-lynx.h 2001/03/06 08:21:20 1.2 +++ config/xm-lynx.h 2001/08/24 12:16:33 @@ -17,5 +17,3 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - -#include /* for INT_MIN */ Index: config/xm-nbsd.h =================================================================== RCS file: /cvs/src/src/gdb/config/xm-nbsd.h,v retrieving revision 1.2 diff -u -p -r1.2 xm-nbsd.h --- config/xm-nbsd.h 2001/03/06 08:21:20 1.2 +++ config/xm-nbsd.h 2001/08/24 12:16:33 @@ -22,10 +22,6 @@ define on some systems. */ #include -/* We have to include these files now, so that GDB will not make - competing definitions in defs.h. */ -#include - #include #if BYTE_ORDER == BIG_ENDIAN #define HOST_BYTE_ORDER BIG_ENDIAN Index: config/xm-sysv4.h =================================================================== RCS file: /cvs/src/src/gdb/config/xm-sysv4.h,v retrieving revision 1.4 diff -u -p -r1.4 xm-sysv4.h --- config/xm-sysv4.h 2001/07/23 19:21:53 1.4 +++ config/xm-sysv4.h 2001/08/24 12:16:33 @@ -27,7 +27,3 @@ /* SVR4 is a derivative of System V Release 3 (USG) */ #define USG - -/* We have to include these files now, so that GDB will not make - competing definitions in defs.h. */ -#include Index: config/i386/xm-i386aix.h =================================================================== RCS file: /cvs/src/src/gdb/config/i386/xm-i386aix.h,v retrieving revision 1.2 diff -u -p -r1.2 xm-i386aix.h --- config/i386/xm-i386aix.h 2001/07/23 19:21:54 1.2 +++ config/i386/xm-i386aix.h 2001/08/24 12:16:33 @@ -27,5 +27,3 @@ #undef HAVE_TERMIO #define HAVE_SGTTY - -#include Index: config/m68k/xm-dpx2.h =================================================================== RCS file: /cvs/src/src/gdb/config/m68k/xm-dpx2.h,v retrieving revision 1.2 diff -u -p -r1.2 xm-dpx2.h --- config/m68k/xm-dpx2.h 2001/03/06 08:21:30 1.2 +++ config/m68k/xm-dpx2.h 2001/08/24 12:16:33 @@ -22,6 +22,3 @@ #define HAVE_TERMIOS #define USG - -/* Avoid redefinition errors */ -#include