Subject: Re: fd_set undeclared
To: Mahesh Chittur <dataduplex@hotmail.com>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 06/11/2003 14:21:39
On Wed, 11 Jun 2003, Mahesh Chittur wrote:
> i was compiling ncbi toolkit, in the file ncbimsg.c gave a compile-time
> error as <sys/types.h> does not
> include definitions for fd_set . I included the header file <sys/types.h>,
> and still give the compilation error as
>
> " 'fd_set' undeclared ( first use in this function )"
Did you get my earlier suggestion?
Since its corelib/ncbilcl.fbd defines _POSIX_C_SOURCE, I think you need to
also increase _XOPEN_SOURCE. Try adding to corelib/ncbilcl.fbd:
#define _XOPEN_SOURCE 600
Did you try it?
Jeremy C. Reed
http://bsd.reedmedia.net/