diff --git a/src/Filesystem.cc b/src/Filesystem.cc index 2e1f206af..5096a6427 100644 --- a/src/Filesystem.cc +++ b/src/Filesystem.cc @@ -55,6 +55,11 @@ #include "sdf/Filesystem.hh" +/* PATH_MAX is undefined on GNU Hurd */ +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + namespace sdf { inline namespace SDF_VERSION_NAMESPACE { diff --git a/src/Filesystem_TEST.cc b/src/Filesystem_TEST.cc index a0b0ea87c..e96cc0198 100644 --- a/src/Filesystem_TEST.cc +++ b/src/Filesystem_TEST.cc @@ -25,6 +25,11 @@ #include #include +/* PATH_MAX is undefined on GNU Hurd */ +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + ///////////////////////////////////////////////// bool create_and_switch_to_temp_dir(std::string &_new_temp_path) {