Boost logo

Boost :

From: Gustavo Guerra (gustavobt_at_[hidden])
Date: 2002-08-08 11:19:47


Hi all.

Under cygwin, the Boost.Config always includes the header <unistd.h>. That
causes lots of problems when I try to use the Winsock API:

/usr/include/w32api/winsock2.h:96: warning: #warning "fd_set and associated
macros have been defined in sys/types. This may cause runtime problems
with W32 sockets"
/usr/include/w32api/winsock2.h:517: declaration of C function `int
gethostname(char *, int)' conflicts with
/usr/include/sys/unistd.h:147: previous declaration `int gethostname(char *,
unsigned int)' here

Is that dependency on <unistd.h> really necessary? Could it be removed?

Gustavo Guerra


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk