Description: define PATH_MAX variable to fix a FTBFS in Hurd.
Author: Joao Eriberto Mota Filho <eriberto@debian.org>
Last-Update: 2015-03-30
Index: md5deep-4.3/src/main.cpp
===================================================================
--- md5deep-4.3.orig/src/main.cpp
+++ md5deep-4.3/src/main.cpp
@@ -39,6 +39,10 @@ std::string progname;
 "This is free software; see the source for copying conditions. There is NO\n"\
 "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
 
+// Fix build in HURD on Debian
+#if defined(__GNU__) && !defined(PATH_MAX)
+#define PATH_MAX 1024
+#endif
 
 #ifdef _WIN32 
 // This can't go in main.h or we get multiple definitions of it
Index: md5deep-4.3/src/files.cpp
===================================================================
--- md5deep-4.3.orig/src/files.cpp
+++ md5deep-4.3/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)
 {
