Subject: Re: bin/23988: egcs: cc -traditional totally broken
To: VaX#n8 <email@example.com>
From: Martin Husemann <firstname.lastname@example.org>
Date: 01/06/2004 15:10:28
On Mon, Jan 05, 2004 at 07:08:52PM -0500, VaX#n8 wrote:
> thing is that once you do a gethostbyname you can't lseek on *any*
> file descriptor.
Your test program does not show that. You need to add the proper includes,
<unistd.h> and <netdb.h>, to have the right prototypes in scope. Especially
since lseek takes a 64 bit int as it's second argument, so argument promotion
does matter. Now you're probably calling it with a random third "whence"