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:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user