Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37704072
en ru br
Репозитории ALT
S:1.9.8-alt1
5.1: 1.5.9-alt2
4.1: 1.5.5-alt1
4.0: 1.5.1-alt1
3.0: 1.4.3-alt1
www.altlinux.org/Changes

Другие репозитории
Upstream:1.5.5

Группа :: Разработка/Прочее
Пакет: doxygen

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: Ubuntu-filesystem_glibc.patch
Скачать


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]);
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin