Add support for FreeBSD.

Contributed by: Tim Tretyak <timothy@umc.com.ua>
This commit is contained in:
Sander Vesik 2000-12-18 22:24:36 +00:00
parent 86edd26b33
commit 5905c18bf4

View file

@ -2,9 +2,9 @@
*
* $RCSfile: rsctools.cxx,v $
*
* $Revision: 1.2 $
* $Revision: 1.3 $
*
* last change: $Author: mm $ $Date: 2000-09-27 11:26:12 $
* last change: $Author: svesik $ $Date: 2000-12-18 23:24:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -62,11 +62,14 @@
Source Code Control System - Header
$Header: /zpool/svn/migration/cvs_rep_09_09_08/code/rsc/source/tools/rsctools.cxx,v 1.2 2000-09-27 11:26:12 mm Exp $
$Header: /zpool/svn/migration/cvs_rep_09_09_08/code/rsc/source/tools/rsctools.cxx,v 1.3 2000-12-18 23:24:36 svesik Exp $
Source Code Control System - Update
$Log: not supported by cvs2svn $
Revision 1.2 2000/09/27 11:26:12 mm
Mac fix corrected
Revision 1.1.1.1 2000/09/18 16:42:56 hr
initial import
@ -189,9 +192,11 @@ int rsc_stricmp( const char *string1, const char *string2 ){
*************************************************************************/
ByteString GetTmpFileName()
{
#ifdef MACOSX
#ifdef MACOSX
// Use tmpnam instead of tempnam as tempnam has some bugs in Mac OS X
return ByteString( tmpnam( NULL ) );
#elif defined(FREEBSD)
return ByteString( mkstemp( (const char *) P_tmpdir ) );
#else
return ByteString( tempnam( (const char *) P_tmpdir, NULL ) );
#endif