From: Bas Couwenberg Date: Tue, 24 Mar 2020 18:20:00 +0000 (+0000) Subject: Add support for GNU/Hurd which doesn't define PATH_MAX. X-Git-Tag: archive/raspbian/3.11.4-3+rpi1^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d7f2a9b8b0d3762a9e75bf9b8a484d00e75dbfaf;p=protobuf.git Add support for GNU/Hurd which doesn't define PATH_MAX. Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835267 Bug-Upstream: https://github.com/google/protobuf/issues/2000 Last-Update: 2019-08-06 Gbp-Pq: Name hurd.patch --- diff --git a/src/google/protobuf/compiler/command_line_interface.cc b/src/google/protobuf/compiler/command_line_interface.cc index 2de5659..ef35f78 100644 --- a/src/google/protobuf/compiler/command_line_interface.cc +++ b/src/google/protobuf/compiler/command_line_interface.cc @@ -55,6 +55,9 @@ #include #include //For PATH_MAX +#if defined(__GNU__) +#define PATH_MAX 4096 +#endif #include