From: Bas Couwenberg Date: Tue, 4 Apr 2023 15:09:31 +0000 (+0100) Subject: Add support for GNU/Hurd which doesn't define PATH_MAX. X-Git-Tag: archive/raspbian/3.6.1.3-2+rpi1+deb10u1^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=039546352a194fc45c41cc51dbad9efe3ecd2517;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: 2018-05-29 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 8380367..d6bbd31 100644 --- a/src/google/protobuf/compiler/command_line_interface.cc +++ b/src/google/protobuf/compiler/command_line_interface.cc @@ -56,6 +56,9 @@ #include #include //For PATH_MAX +#if defined(__GNU__) +#define PATH_MAX 4096 +#endif #include