Hi Miguel,

Can you pls commit this?

Brgds,
Viktor

On 2008.06.30., at 16:47, Miguel Angel Marchuet wrote:

please put this change better

// some compilers has missing this define
#ifndef SOCKET_ERROR
#define SOCKET_ERROR            (-1)
#endif

at the top of hbinet.c

instead of substitute

if ( getsockopt( Socket->com, SOL_SOCKET, SO_SNDBUF, (char *) &value, &len ) != SOCKET_ERROR )

for

if( getsockopt( Socket->com, SOL_SOCKET, SO_SNDBUF, (char *) &value, &len ) == 0 )


The major part of compilers has defined SOCKET_ERROR. It's more clear to read and prevent for future different returns
of getsockopt.

Best regards,
Miguel Angel Marchuet




Szakáts Viktor escribió:
2008-06-30 14:46 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
  * include/hbextern.ch
    + New inet functions added.
  * source/rtl/hbinet.c
    ! Blind fix for Linux compile error.
--
Brgds,
Viktor
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour


_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to