Commit c2486c56 authored by Hilko Bengen's avatar Hilko Bengen

Fix FTBFS on Hurd, thanks to Aaron M. Ucko (Closes: #881783)

parent d3c89e8a
From: "Aaron M. Ucko" <ucko@debian.org>
Date: Mon, 18 Dec 2017 21:37:00 +0100
Subject: libcpath: Add PATH_MAX for Hurd compatibility
---
libcpath/libcpath_path.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libcpath/libcpath_path.c b/libcpath/libcpath_path.c
index c5bd75c..4fa4187 100644
--- a/libcpath/libcpath_path.c
+++ b/libcpath/libcpath_path.c
@@ -450,6 +450,9 @@ int libcpath_path_get_current_working_directory(
libcerror_error_t **error )
{
static char *function = "libcpath_path_get_current_working_directory";
+#if !defined(PATH_MAX) && defined _PC_PATH_MAX
+ size_t PATH_MAX = pathconf(".", _PC_PATH_MAX);
+#endif
if( current_working_directory == NULL )
{
0001-Add-missing-file-from-upstream-git.patch
0002-Added-bounds-check-to-data-segment.patch
0003-libcpath-Add-PATH_MAX-for-Hurd-compatibility.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment