diff options
author | Sander Vesik <svesik@openoffice.org> | 2000-12-18 22:24:36 +0000 |
---|---|---|
committer | Sander Vesik <svesik@openoffice.org> | 2000-12-18 22:24:36 +0000 |
commit | 5905c18bf424732d4f069a06f821e8e3a38c8a77 (patch) | |
tree | 84e4139333f61d4968a1b4adf87c46060b522f4f /rsc | |
parent | 86edd26b33429faff4fdcff3c86f89abba6c3aa3 (diff) |
Add support for FreeBSD.
Contributed by: Tim Tretyak <timothy@umc.com.ua>
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/tools/rsctools.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/rsc/source/tools/rsctools.cxx b/rsc/source/tools/rsctools.cxx index b82141c6d46b..b220f0fd98ba 100644 --- a/rsc/source/tools/rsctools.cxx +++ b/rsc/source/tools/rsctools.cxx @@ -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 |