Group :: Desenvolvimento/Outros
RPM: doxygen
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: Ubuntu-filesystem_glibc.patch
Download
Download
From: Samuel Thibault <samuel.thibault@gnu.org>
Date: Wed, 28 Sep 2022 17:50:54 +0200
Subject: Fix build on GNU/Hurd
Forwarded: https://github.com/doxygen/doxygen/pull/9514
---
Index: doxygen/filesystem/filesystem.hpp
===================================================================
--- doxygen.orig/filesystem/filesystem.hpp
+++ doxygen/filesystem/filesystem.hpp
@@ -4081,6 +4081,13 @@ GHC_INLINE path current_path(std::error_
return path();
}
return path(std::wstring(buffer.get()), path::native_format);
+#elif defined(__GLIBC__)
+ std::unique_ptr<char, decltype(&std::free)> buffer { ::getcwd(NULL, 0), std::free };
+ if (buffer == nullptr) {
+ ec = detail::make_system_error();
+ return path();
+ }
+ return path(buffer.get());
#else
size_t pathlen = static_cast<size_t>(std::max(int(::pathconf(".", _PC_PATH_MAX)), int(PATH_MAX)));
std::unique_ptr<char[]> buffer(new char[pathlen + 1]);