Subject: Re: fd_set undeclared
To: cOoLmaC :] <>
From: Jeremy C. Reed <>
List: netbsd-bugs
Date: 06/11/2003 12:32:00
On Thu, 12 Jun 2003, cOoLmaC :] 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 )"

Since its corelib/ncbilcl.fbd defines _POSIX_C_SOURCE, I think you need to
also define _XOPEN_SOURCE. Try adding to corelib/ncbilcl.fbd:

#define _XOPEN_SOURCE 600

You may want to discuss this on tech-pkg. Someone may be interested in
helping create the biology/ncbi-toolkit package.

   Jeremy C. Reed