Description: define PATH_MAX variable to fix a FTBFS in Hurd.
Author: Joao Eriberto Mota Filho <eriberto@debian.org>
Last-Update: 2015-06-14
Index: hashdeep-4.4/src/files.cpp
===================================================================
--- hashdeep-4.4.orig/src/files.cpp
+++ hashdeep-4.4/src/files.cpp
@@ -26,6 +26,11 @@
 #include "main.h"
 #include "common.h"
 
+// Fix build in HURD on Debian
+#if defined(__GNU__) && !defined(PATH_MAX)
+#define PATH_MAX 1024
+#endif
+
 #ifndef HAVE_ISXDIGIT
 bool isxdigit(char ch)
 {
Index: hashdeep-4.4/src/main.cpp
===================================================================
--- hashdeep-4.4.orig/src/main.cpp
+++ hashdeep-4.4/src/main.cpp
@@ -27,6 +27,11 @@
 #include "tiger.h"
 #include "whirlpool.h"
 
+// Fix build in HURD on Debian
+#if defined(__GNU__) && !defined(PATH_MAX)
+#define PATH_MAX 1024
+#endif
+
 using namespace std;
 
 std::string progname;
