From 7ae633f8a997997524cded2d205d14eeb5f08051 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 2 Oct 2008 13:13:03 +0000 Subject: Updated on my laptop and discovered that the new, more pedantic gcc had a problem with a missing include. Also, if you get errors about conflicts and things being declared twice, then "rm src/exceptions.o" it shouldn't be sneaking in there still, but it may be. then do a full "build -c all" and build. Oh, also found some solid gold taf code that never got included, but is very much needed. Remembering to commit would be useful... --- src/file.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/file.cpp') diff --git a/src/file.cpp b/src/file.cpp index 5049bbb..417c445 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -11,6 +11,7 @@ #include #include #include +#include // for mkstemp namespace Bu { subExceptionDef( FileException ) } @@ -150,6 +151,12 @@ void Bu::File::setBlocking( bool bBlocking ) } #ifndef WIN32 +Bu::File Bu::File::tempFile( Bu::FString &sName, int /*iFlags*/ ) +{ + int afh_d = mkstemp( sName.getStr() ); + + return Bu::File( afh_d ); +} void Bu::File::truncate( long nSize ) { ftruncate( fd, nSize ); -- cgit v1.2.3