On Fri, 14 Aug 2009, Szak�ts Viktor wrote:
> ---
> ../../../hbsocket.c:179:1: warning: "socklen_t" redefined
> In file included from /usr/include/sys/socket.h:15,
>                  from ../../../hbsocket.c:167:
> /usr/include/cygwin/socket.h:24:1: warning: this is the location of
> the previous definition
> ../../../hbsocket.c: In function `hb_socketInit':
> ../../../hbsocket.c:698: error: `WSADATA' undeclared (first use in
> this function)
> ../../../hbsocket.c:698: error: (Each undeclared identifier is
> reported only once
[...]

look at the definitions at beginning of hbsocket.h and do not enable
any extensions like HB_HAS_INET6 for CYGWIN builds in HB_OS_UNIX
section or simply change:

   #if defined( HB_OS_UNIX )
   #  define HB_HAS_UNIX

to:

   #if defined( HB_OS_UNIX ) && !defined( __CYGWIN__ )
   #  define HB_HAS_UNIX

and add befor:

   #if defined( HB_OS_OS2 ) || defined( HB_OS_WIN )
   #  define socklen_t int
   #endif

smal hack with:

   #undef HB_OS_WIN

It should help.
When I'll be back I can look at it closer.

best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to