If sysdep.h includes a header file, don't include it again:

* aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
	<errno.h>.
	* aoutx.h: Don't include <string.h>.  Use "sysdep.h" rather than
	<sysdep.h>.
	* archive.c: Don't include <string.h> or <errno.h>.
	* evax-alpha.c; Don't include <stdio.h>.
	* evax-egsd.c: Likewise.
	* evax-etir.c: Likewise.
	* evax-misc.c: Likewise.
	* evax-emh.c: Likewise.  Also, don't include <sys/types.h>.
	* hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
	<errno.h>.
	* hpux-core.c: Likewise.
	* netbsd-core.c: Likewise.
	* som.c: Likewise.
	* libbfd.c: Don't include <sys/types.h>.
	* nlmcode.h: Don't include <string.h>.
	* osf-core.c: Don't include <string.h> or <stdio.h>.
	* ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
	<errno.h>, or <unistd.h>.
	* trad-core.c: Don't include <stdio.h> or <sys/types.h>.
This commit is contained in:
Ian Lance Taylor 1998-05-07 22:05:46 +00:00
parent 62ebd0a880
commit 980381afd7
6 changed files with 31 additions and 12 deletions

View File

@ -1,3 +1,30 @@
Thu May 7 17:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
* filemode.c: Remove; not used.
If sysdep.h includes a header file, don't include it again:
* aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
<errno.h>.
* aoutx.h: Don't include <string.h>. Use "sysdep.h" rather than
<sysdep.h>.
* archive.c: Don't include <string.h> or <errno.h>.
* evax-alpha.c; Don't include <stdio.h>.
* evax-egsd.c: Likewise.
* evax-etir.c: Likewise.
* evax-misc.c: Likewise.
* evax-emh.c: Likewise. Also, don't include <sys/types.h>.
* hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
<errno.h>.
* hpux-core.c: Likewise.
* netbsd-core.c: Likewise.
* som.c: Likewise.
* libbfd.c: Don't include <sys/types.h>.
* nlmcode.h: Don't include <string.h>.
* osf-core.c: Don't include <string.h> or <stdio.h>.
* ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
<errno.h>, or <unistd.h>.
* trad-core.c: Don't include <stdio.h> or <sys/types.h>.
Thu May 7 13:12:50 1998 Klaus Kaempf <kkaempf@progis.de>
* configure.com: If the version number can not be found in

View File

@ -17,9 +17,6 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include <stdio.h>
#include "bfd.h"
#include "sysdep.h"
#include "bfdlink.h"

View File

@ -1,5 +1,5 @@
/* evax-egsd.c -- BFD back-end for ALPHA EVAX (openVMS/Alpha) files.
Copyright 1996, 1997 Free Software Foundation Inc.
Copyright 1996, 1997, 1998 Free Software Foundation Inc.
go and read the openVMS linker manual (esp. appendix B)
if you don't know what's going on here :-)
@ -22,7 +22,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include <stdio.h>
#include <ctype.h>
#include "bfd.h"

View File

@ -1,5 +1,5 @@
/* evax-emh.c -- BFD back-end for ALPHA EVAX (openVMS/Alpha) files.
Copyright 1996, 1997 Free Software Foundation, Inc.
Copyright 1996, 1997, 1998 Free Software Foundation, Inc.
EMH record handling functions
and
@ -22,7 +22,6 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include <stdio.h>
#include <ctype.h>
#include "bfd.h"
@ -137,7 +136,6 @@ get_vms_time_string ()
{
static unsigned char tbuf[18];
#ifndef VMS
#include <sys/types.h>
#include <time.h>
char *pnt;

View File

@ -1,5 +1,5 @@
/* evax-etir.c -- BFD back-end for ALPHA EVAX (openVMS/Alpha) files.
Copyright 1996, 1997 Free Software Foundation, Inc.
Copyright 1996, 1997, 1998 Free Software Foundation, Inc.
ETIR record handling functions
go and read the openVMS linker manual (esp. appendix B)
@ -32,7 +32,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
qw quadword (8 byte, 64 bit)
da data stream */
#include <stdio.h>
#include <ctype.h>
#include "bfd.h"

View File

@ -1,5 +1,5 @@
/* evax-misc.c -- Miscellaneous functions for ALPHA EVAX (openVMS/Alpha) files.
Copyright 1996, 1997 Free Software Foundation, Inc.
Copyright 1996, 1997, 1998 Free Software Foundation, Inc.
Written by Klaus K"ampf (kkaempf@progis.de)
of proGIS Softwareentwicklung, Aachen, Germany
@ -22,7 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#if __STDC__
#include <stdarg.h>
#endif
#include <stdio.h>
#include "bfd.h"
#include "sysdep.h"