Add support for GNU/Hurd which doesn't define PATH_MAX.
authorBas Couwenberg <sebastic@debian.org>
Tue, 4 Apr 2023 15:09:31 +0000 (16:09 +0100)
committerHelmut Grohne <helmut@subdivi.de>
Tue, 4 Apr 2023 15:09:31 +0000 (16:09 +0100)
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

src/google/protobuf/compiler/command_line_interface.cc

index 8380367fa8767f1b7cdb183b849b9492e6792923..d6bbd31a6d77b59b7a132d36e7a88fe3c5969bf8 100644 (file)
@@ -56,6 +56,9 @@
 #include <ctype.h>
 
 #include <limits.h> //For PATH_MAX
+#if defined(__GNU__)
+#define PATH_MAX 4096
+#endif
 
 #include <memory>