| 1 | Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835267 |
| 2 | Bug-Upstream: https://github.com/google/protobuf/issues/2000 |
| 3 | Description: Add support for GNU/Hurd which doesn't define PATH_MAX. |
| 4 | Author: Bas Couwenberg <[email protected]> |
| 5 | Last-Update: 2022-03-11 |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | #include <iostream> |
| 11 | |
| 12 | #include <limits.h> // For PATH_MAX |
| 13 | +#if defined(__GNU__) |
| 14 | +#define PATH_MAX 4096 |
| 15 | +#endif |
| 16 | |
| 17 | #include <memory> |
| 18 |