2010-11-21 17:35 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/src/vm/thread.c
    * cover s_fThreadInit declaration by HB_MT_VM macro

  * harbour/src/rtl/hbsocket.c
    ! added missing const to 1-st parameter of hb_inet_ntoa()
This commit is contained in:
Przemyslaw Czerpak
2010-11-21 16:35:24 +00:00
parent 125cb328ff
commit d3b7a3a61b
3 changed files with 10 additions and 3 deletions

View File

@@ -16,6 +16,13 @@
The license applies to all entries newer than 2009-04-28.
*/
2010-11-21 17:35 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/thread.c
* cover s_fThreadInit declaration by HB_MT_VM macro
* harbour/src/rtl/hbsocket.c
! added missing const to 1-st parameter of hb_inet_ntoa()
2010-11-21 15:56 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbgd/tests/tpoly.prg
+ Applied PI patch from Tamas.

View File

@@ -787,7 +787,7 @@ static int s_iSessions;
#endif
#if !defined( HB_HAS_INET_NTOP ) && !defined( HB_IS_INET_NTOA_MT_SAFE ) && defined( AF_INET )
static const char * hb_inet_ntoa( struct in_addr * addr, char * pBuffer )
static const char * hb_inet_ntoa( const struct in_addr * addr, char * pBuffer )
{
/* dirty hack to make inet_ntoa() MT safe,
* in many systems inet_ntoa() returns pointer to

View File

@@ -118,11 +118,11 @@
#endif
static volatile HB_BOOL s_fThreadInit = HB_FALSE;
#if !defined( HB_MT_VM )
/* nothing */
#else
static volatile HB_BOOL s_fThreadInit = HB_FALSE;
static PHB_ITEM s_pOnceMutex = NULL;
static int s_waiting_for_threads = 0;