Howdy,
I'm trying to build nmh-1.0 under RedHat 5.2/Sparc (egcs-1.1b,
glibc-2.0.7).
I'm encountering the following error at compile time:
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -O2 discard.c
discard.c: In function `discard':
discard.c:60: structure has no member named `_ptr'
discard.c:60: structure has no member named `_base'
discard.c:61: structure has no member named `_cnt'
make[1]: *** [discard.o] Error 1
That section of the code looks something like this:
# ifdef LINUX_STDIO
io->_IO_write_ptr = io->_IO_write_base;
# else
if ((io->_ptr = io->_base))
io->_cnt = 0;
# endif
The errors goes away if one degines LINUX_STDIO in config.h. Is this
something that could be detected by the configure script? Or better yet,
is it *really* necessary to directly access members of the FILE structure?
Thanks,
-- Lars
--
Lars Kellogg-Stedman <[EMAIL PROTECTED]>