This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
A patch for emultempl/pe.em
- To: binutils at sourceware dot cygnus dot com
- Subject: A patch for emultempl/pe.em
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Wed, 2 May 2001 09:50:07 -0700
I am tired of getting:
gcc -DHAVE_CONFIG_H -I. -I/export/import/binutils/ld -I. -D_GNU_SOURCE -I. -I/export/import/binutils/ld -I../bfd -I/export/import/binutils/ld/../bfd -I/export/import/binutils/ld/../include -I/export/import/binutils/ld/../intl -I../intl -g -O2 -DLOCALEDIR="\"/usr/share/locale\"" -W -Wall -g -O2 -c ei386pe.c
ei386pe.c: In function `gld_i386pe_place_orphan':
ei386pe.c:1364: warning: implicit declaration of function `isalnum'
Here is a patch. If I don't hear any objections by the end of the day,
I will check it in.
H.J.
----
2001-05-02 H.J. Lu <hjl@gnu.org>
* emultempl/pe.em: Include <ctype.h>.
Index: emultempl/pe.em
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/emultempl/pe.em,v
retrieving revision 1.1.1.28
diff -u -p -r1.1.1.28 pe.em
--- emultempl/pe.em 2001/03/15 22:57:13 1.1.1.28
+++ emultempl/pe.em 2001/05/02 16:46:00
@@ -52,6 +52,8 @@ Foundation, Inc., 59 Temple Place - Suit
#include "deffile.h"
#include "pe-dll.h"
+#include <ctype.h>
+
#define TARGET_IS_${EMULATION_NAME}
/* Permit the emulation parameters to override the default section