Can you verify were is in gcc this declaration

#define SOCKET_ERROR            (-1)

I don't use gcc compiler, is possible gcc is buggy or needs some include.

if it doesn't exists at gcc then, please add this define only under gcc compiler

#define SOCKET_ERROR            (-1)

Best regards,
Miguel Angel marchuet

Maurilio Longo escribió:
> OS/2 GCC after this change:
> 
> gcc -I. -I../../include -I../../../../include -DHB_OS_OS2 -Wall -fsigned-char
> -O2 -DTCPV40HDRS -DSIMPLEX -c ../../inet.c -oinet.o
> ../../inet.c: In function `hb_socketConnect':
> ../../inet.c:355: error: `SOCKET_ERROR' undeclared (first use in this 
> function)
> ../../inet.c:355: error: (Each undeclared identifier is reported only once
> ../../inet.c:355: error: for each function it appears in.)
> ../../inet.c: In function `s_inetRecvInternal':
> ../../inet.c:872: error: `DWORD' undeclared (first use in this function)
> ../../inet.c:872: error: parse error before "iMaxLen"
> ../../inet.c:886: error: `iMaxLen' undeclared (first use in this function)
> ../../inet.c:913: error: `SOCKET_ERROR' undeclared (first use in this 
> function)
> ../../inet.c:922: error: `iReceived' undeclared (first use in this function)
> ../../inet.c: In function `s_inetSendInternal':
> ../../inet.c:1508: error: `SOCKET_ERROR' undeclared (first use in this 
> function)
> make[3]: *** [inet.o] Error 1
> make[3]: Leaving directory `/repos2/xharbour/source/vm/os2/gcc'
> make[2]: *** [descend] Error 2
> make[2]: Leaving directory `/repos2/xharbour/source/vm'
> 
> 
> Miguel Angel Marchuet wrote:
>> 2008-04-01 12:42 UTC+0100 Miguel Angel Marchuet <[EMAIL PROTECTED]>
>>    * include\inet.h
>>    * source\tip\client.prg
>>    * source\tip\ftpcln.prg
>>    * source\vm\inet.c
>>      * Modified STOR method to execute GetReply at Port mode to sincronize 
>> ftp responses and
>>        not STOP connection.
>>      + Added dynamic buffer rcv and snd increasing by default 1400 to 64k to 
>> increase speed transfer.
>>      + Added high level functions to manage buffers
>>      InetGetSNDBufSize( pSocket )
>>      InetGetRCVBufSize( pSocket )
>>      InetSetSNDBufSize( pSocket, nBufSize )
>>      InetSetRCVBufSize( pSocket, nBufSize )
>>      * Corrected ftpclient to use increased buffers on transfers.
>>      * With these changes the transfer speed to be increased more than 10 
>> times. I hope that can be
>>        exploited in LETO RDD and FTP transfers, and others. It is not tested 
>> on Linux machines, perhaps
>>        requires some modification.
>>
>> Best regards,
>> Miguel Angel Marchuet
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>> _______________________________________________
>> xHarbour-developers mailing list
>> xHarbour-developers@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/xharbour-developers
>>
> 


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to