Jacob Ritorto wrote:
On Tue, Dec 2, 2014 at 1:22 PM, Holm Tiffe <holm at
freibergnet.de> wrote:
Tell us what you see when you use the C-preprocessor only on that file:
gcc -E rain.c |less
and then search in the output for setbuf:
float cols, lines;
setbuf(__stdoutp,malloc(1024));
if (!(term=getenv("TERM"))) {
ok, Holm, on OpenSolaris, gcc -E rain.c |less gives:
float cols, cur_term-> _c3;
setbuf((&__iob[1]),malloc(1024));
if (!(term=getenv("TERM"))) {
I think that means it worked, right?
--jake
As other people already wrote the declaration of the cariable lines
got screwed up on your system b'cause of a ugly definition of the name
lines somewhere in therm.h on your system.
The simplest solution may be changing all occurences of "lines" in rain.c
to something other, eg. "mylines". Another possibility is a #undef lines
just before that line "float cols, lines;".
Regards,
Holm
--
Technik Service u. Handel Tiffe,
www.tsht.de, Holm Tiffe,
Freiberger Stra?e 42, 09600 Obersch?na, USt-Id: DE253710583
www.tsht.de, info at tsht.de, Fax +49 3731 74200, Mobil: 0172 8790 741