| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 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/iridium/files/ |
Upload File : |
--- third_party/test_fonts/fontconfig/fontconfig_util_linux.cc.orig 2022-04-01 07:48:30 UTC
+++ third_party/test_fonts/fontconfig/fontconfig_util_linux.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "build/build_config.h"
+
#include "third_party/test_fonts/fontconfig/fontconfig_util_linux.h"
#include <fontconfig/fontconfig.h>
@@ -15,11 +17,15 @@
namespace test_fonts {
std::string GetSysrootDir() {
+#if BUILDFLAG(IS_BSD)
+ return std::string(".");
+#else
char buf[PATH_MAX + 1];
auto count = readlink("/proc/self/exe", buf, PATH_MAX);
assert(count > 0);
buf[count] = '\0';
return dirname(buf);
+#endif
}
void SetUpFontconfig() {