[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Again and again: cvs-ld build failure on hppa64-hp-hpux11.00
From: |
Alan Modra |
Subject: |
Re: Again and again: cvs-ld build failure on hppa64-hp-hpux11.00 |
Date: |
Sun, 16 Sep 2001 13:56:02 +0930 |
User-agent: |
Mutt/1.3.17i |
On Fri, Sep 14, 2001 at 01:49:16PM +0200, Markus Werle wrote:
> ../../src/ld/ldmain.c: In function `main':
> ../../src/ld/ldmain.c:328: parse error before '<<' token
Presumably, BufferSize is a macro defined in your system headers. Next
time, please make at least a small effort to determine why you, and only
you, have a problem. Otherwise I won't be inclined to help, especially
if you whine and complain.
Alan
ld/ChangeLog
* ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
defines BufferSize. Increase buffer size by one.
Index: ldmain.c
===================================================================
RCS file: /cvs/src/src/ld/ldmain.c,v
retrieving revision 1.32
diff -u -p -r1.32 ldmain.c
--- ldmain.c 2001/08/31 21:28:05 1.32
+++ ldmain.c 2001/09/15 11:40:14
@@ -325,12 +325,12 @@ main (argc, argv)
if (saved_script_handle)
{
- static const int BufferSize = 8192;
+ static const int ld_bufsz = 8193;
size_t n;
- char *buf = xmalloc (BufferSize);
+ char *buf = xmalloc (ld_bufsz);
rewind (saved_script_handle);
- while ((n = fread (buf, 1, BufferSize - 1, saved_script_handle)) > 0)
+ while ((n = fread (buf, 1, ld_bufsz - 1, saved_script_handle)) > 0)
{
buf [n] = 0;
info_msg (buf);