I get the following:
---
gcc -c -I./cig -I./scsh/regexp -DHAVE_CONFIG_H -I. -I. -g -O -o
scsh/machine/stdio_dep.o scsh/machine/stdio_dep.c
scsh/machine/stdio_dep.c: In function `setfileno':
scsh/machine/stdio_dep.c:64: invalid lvalue in assignment
make: *** [scsh/machine/stdio_dep.o] Error 1
---
void setfileno(FILE *fs, int fd)
{
fileno(fs) = fd;
^^^^^^^^^^^^^^^
It dies on this line. `fileno' in the `stdio.h' that GCC uses is a
function and not a macro (as it is in `/usr/include').
}
I put
#undef fileno
#define fileno(p) ((p)->_file)
before the definition of `setfileno' and Scsh compiled, but I question
it's stability (for this reason only).
I'm using GCC 2.7.2.
Thanks for any info.
--
--
Kevin K. Lewis | My opinions may be unreasonable
lewikk@aud.alcatel.com | but such is the voice of inspiration
|