Differential D33923 Diff 101572 www/onlyoffice-documentserver/files/patch-core_HtmlFile_HtmlFile.cpp
Changeset View
Changeset View
Standalone View
Standalone View
www/onlyoffice-documentserver/files/patch-core_HtmlFile_HtmlFile.cpp
- This file was added.
--- core/HtmlFile/HtmlFile.cpp.orig 2021-09-30 12:13:32 UTC | |||||
+++ core/HtmlFile/HtmlFile.cpp | |||||
@@ -45,7 +45,7 @@ | |||||
#include <vector> | |||||
#include <map> | |||||
-#ifdef LINUX | |||||
+#if defined(LINUX) || defined(__FreeBSD__) | |||||
#include <unistd.h> | |||||
#include <sys/wait.h> | |||||
#include <stdio.h> | |||||
@@ -475,7 +475,7 @@ int CHtmlFile::Convert(const std::vector<std::wstring> | |||||
NSFile::CFileBinary::Remove(sTempFileForParams); | |||||
#endif | |||||
-#ifdef LINUX | |||||
+#if defined(LINUX) || defined(__FreeBSD__) | |||||
std::wstring sTempFileForParams = NSFile::CFileBinary::CreateTempFileWithUniqueName(NSFile::CFileBinary::GetTempPath(), L"XML"); | |||||
NSFile::CFileBinary oFile; | |||||
oFile.CreateFileW(sTempFileForParams); |