Cannot get a clean compile in Harbour with windows and bcc32. Get an error at line 354 stating that ulong uladdr can't be placed here. The problem is that hb_vmUnlock(); at line 350 makes line 354 invalid.

Starting at line 350 in hbinet.c

  /* TOFIX: make it MT safe */

------> the placement here is makes the defined section below invalid ----> hb_vmUnlock();

  /* let's see if name is an IP address; not necessary on Linux */
#if defined(HB_OS_WIN_32) || defined(HB_OS_OS2)
  ULONG ulAddr;

  ulAddr = inet_addr( name );
  if( ulAddr == INADDR_NONE )
  {
     if( strcmp( "255.255.255.255", name ) == 0 )
     {
Host = gethostbyaddr( (const char*) &ulAddr, sizeof( ulAddr ), AF_INET );
     }
  }
  else
  {
Host = gethostbyaddr( (const char*) &ulAddr, sizeof( ulAddr ), AF_INET );
  }
#endif

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

Reply via email to