mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 21:23:03 +01:00
Fixed issues reported by Michal.
This commit is contained in:
parent
c5207d29f5
commit
be1414ee62
@ -29,6 +29,8 @@ namespace Firebird {
|
||||
|
||||
class File {
|
||||
public:
|
||||
virtual ~File() {}
|
||||
|
||||
virtual size_t read(offset_t, void*, size_t) = 0;
|
||||
virtual size_t write(offset_t, void*, size_t) = 0;
|
||||
|
||||
|
@ -37,6 +37,8 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/timeb.h>
|
||||
#include <windows.h>
|
||||
#elif defined(HAVE_UNISTD_H)
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "../jrd/gdsassert.h"
|
||||
@ -83,7 +85,8 @@ Firebird::PathName TempFile::getTempPath()
|
||||
path = temp_dir;
|
||||
}
|
||||
#else
|
||||
path = getenv("TMP");
|
||||
env_temp = getenv(TMP)
|
||||
path = env_temp ? env_temp : "";
|
||||
#endif
|
||||
}
|
||||
if (path.empty())
|
||||
|
@ -45,7 +45,7 @@ public:
|
||||
init("", prefix);
|
||||
}
|
||||
|
||||
~TempFile();
|
||||
virtual ~TempFile();
|
||||
|
||||
size_t read(offset_t, void*, size_t);
|
||||
size_t write(offset_t, void*, size_t);
|
||||
|
Loading…
Reference in New Issue
Block a user