On Mon, 31 Aug 2009, Itamar Lins wrote:

Hi,

> Anybody of the group LetoDB can updated it ?
> To be compiling with the new harbour function hb_socket... for exemple.

The whole modification you are asking for is adding 'static ' at the
beginning of line 373 in source/common/hbip.c. But if you want then you
can make also other cleanups.

below is a patch.

modifications in console.prg and manage.prg fix hardcoded windows
paths so this code can be compiled also in Linux or using different
relative paths.

modification in hbip.c fixes multiple definition of hb_socketConnect()
function. Anyhow here I suggest to rewrite this code to use hbsocket.h
API. It's multiplatform so LETODB can be used on all supported platforms.
But I'm leaving such decision to LETODB developers.

best regards,
Przemek



Index: source/common/hbip.c
===================================================================
RCS file: /cvsroot/letodb/letodb/source/common/hbip.c,v
retrieving revision 1.14
diff -u -r1.14 hbip.c
--- source/common/hbip.c        2 Jul 2009 10:40:58 -0000       1.14
+++ source/common/hbip.c        1 Sep 2009 11:36:14 -0000
@@ -370,7 +370,7 @@
 #endif
 }
 
-int hb_socketConnect( HB_SOCKET_T hSocket, struct sockaddr_in *remote, int 
timeout )
+static int hb_socketConnect( HB_SOCKET_T hSocket, struct sockaddr_in *remote, 
int timeout )
 {
    int iErr1;
    #if ! defined(HB_OS_WIN_32)
Index: utils/manager/console.prg
===================================================================
RCS file: /cvsroot/letodb/letodb/utils/manager/console.prg,v
retrieving revision 1.11
diff -u -r1.11 console.prg
--- utils/manager/console.prg   2 Jul 2009 10:40:58 -0000       1.11
+++ utils/manager/console.prg   1 Sep 2009 11:36:14 -0000
@@ -49,7 +49,7 @@
  */
 
 #include "hbclass.ch"
-#include "..\..\include\rddleto.ch"
+#include "rddleto.ch"
 
 Static CRLF
 
Index: utils/manager/manage.prg
===================================================================
RCS file: /cvsroot/letodb/letodb/utils/manager/manage.prg,v
retrieving revision 1.19
diff -u -r1.19 manage.prg
--- utils/manager/manage.prg    28 May 2009 06:45:44 -0000      1.19
+++ utils/manager/manage.prg    1 Sep 2009 11:36:14 -0000
@@ -51,7 +51,7 @@
 #include "hbclass.ch"
 #include "hwgui.ch"
 #include "hxml.ch"
-#include "..\..\include\rddleto.ch"
+#include "rddleto.ch"
 
 #ifndef __XHARBOUR__
 ANNOUNCE HB_GTSYS
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to