diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 88fda61200..9e4d55610f 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -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. diff --git a/harbour/src/rtl/hbsocket.c b/harbour/src/rtl/hbsocket.c index 192028c64f..9d888b2f85 100644 --- a/harbour/src/rtl/hbsocket.c +++ b/harbour/src/rtl/hbsocket.c @@ -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 diff --git a/harbour/src/vm/thread.c b/harbour/src/vm/thread.c index 4893ee161c..87a0a3cfc2 100644 --- a/harbour/src/vm/thread.c +++ b/harbour/src/vm/thread.c @@ -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;