A Linux linking time warning removed
This commit is contained in:
@@ -2531,7 +2531,7 @@ static ERRCODE hb_ntxIndexCreate( LPNTXINDEX pIndex )
|
||||
#endif
|
||||
while( --nAttemptLeft )
|
||||
{
|
||||
#if !defined( HB_OS_LINUX ) && !defined( HB_OS_BSD )
|
||||
#if !defined( HB_OS_UNIX ) && !defined( HB_OS_BSD )
|
||||
tmpnam( pszTempName );
|
||||
sortInfo.tempHandle = hb_fsCreate( (BYTE*)pszTempName,FC_NORMAL );
|
||||
if( sortInfo.tempHandle != FS_ERROR )
|
||||
|
||||
@@ -70,7 +70,11 @@ static BOOL hb_fsTempName( BYTE * pszBuffer, const BYTE * pszDir, const BYTE * p
|
||||
|
||||
pszBuffer[ 0 ] = '\0';
|
||||
|
||||
tmpnam( ( char * ) pszBuffer );
|
||||
#ifndef HB_OS_UNIX
|
||||
tmpnam( ( char * ) pszBuffer );
|
||||
#else
|
||||
mkstemp( ( char * ) pszBuffer );
|
||||
#endif
|
||||
|
||||
return pszBuffer[ 0 ] != '\0';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user