| Server IP : 82.208.35.60 / Your IP : 216.73.217.103 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/www/onlyoffice-documentserver/files/ |
Upload File : |
--- core/DesktopEditor/common/Path.cpp.orig 2021-09-30 12:13:32 UTC
+++ core/DesktopEditor/common/Path.cpp
@@ -34,7 +34,7 @@
#if defined(_WIN32) || defined (_WIN64)
#include <tchar.h>
-#elif __linux__ || MAC
+#elif __linux__ || __FreeBSD__ || MAC
#include <libgen.h>
#endif
@@ -53,7 +53,7 @@ namespace NSSystemPath
sRes.append(tFolder);
if(sRes.length() > 0)
sRes.erase(sRes.length()-1);
-#elif __linux__ || MAC
+#elif __linux__ || __FreeBSD__ || MAC
BYTE* pUtf8 = NULL;
LONG lLen = 0;
NSFile::CUtf8Converter::GetUtf8StringFromUnicode(strFileName.c_str(), strFileName.length(), pUtf8, lLen, false);
@@ -73,7 +73,7 @@ namespace NSSystemPath
sRes.append(tFilename);
sRes.append(tExt);
return sRes;
-#elif __linux__ || MAC
+#elif __linux__ || __FreeBSD__ || MAC
BYTE* pUtf8 = NULL;
LONG lLen = 0;
NSFile::CUtf8Converter::GetUtf8StringFromUnicode(strFileName.c_str(), strFileName.length(), pUtf8, lLen, false);