A Linux linking time warning removed

This commit is contained in:
Antonio Linares
2004-04-02 10:04:20 +00:00
parent 1e22b1fe7a
commit 92c3a16b2a
2 changed files with 6 additions and 2 deletions

View File

@@ -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 )

View File

@@ -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';
}