Workaround for PATH_MAX usage on the Hurd. Taken from https://salsa.debian.org/debian/screen/-/blob/master/debian/patches/61-default-PATH_MAX-if-undefined-for-hurd.patch Description: Set PATH_MAX to 4096 if undefined Fixes FTBFS since 4.4.0 on GNU/Hurd. Updated to add one more occurrence for 4.5.0. Author: Axel Beckert Bug: https://savannah.gnu.org/bugs/?50089 Updated: 2017-01-18 Updated: 2024-08-30 Update for Screen 5.0.0 diff --git a/screen.h b/screen.h index 308c365..e71bd7f 100644 --- a/screen.h +++ b/screen.h @@ -63,6 +63,22 @@ struct mode { #endif }; +/* + * Define PATH_MAX to 4096 if it's not defined, like on GNU/Hurd + */ + +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + +/* + * similarly for MAXPATHLEN + */ + +#ifndef MAXPATHLEN +#define MAXPATHLEN PATH_MAX +#endif + #include "ansi.h" #include "image.h" ype='submit' value='switch'/> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/tests/scripts.scm
AgeCommit message (Expand)Author
2019-03-24tests: Add missing import....This is a followup to 22f95e028f038cee342f455dfc55bd32b804907c. * tests/scripts.scm: Use (guix tests). Ludovic Courtès
2019-03-16tests: Add 'with-environment-variable'....* tests/scripts.scm (with-environment-variable): Move to... * guix/tests.scm (with-environment-variable): ... here. * tests/build-utils.scm ("wrap-program, one input, multiple calls"): Use it instead of 'setenv'. Ludovic Courtès