From 3817103bae789b2bff7cf8c1bbe2255b60878ab3 Mon Sep 17 00:00:00 2001 From: Bert Gijsbers <gijsbers@science.uva.nl> Date: Sun, 3 Jun 2018 09:34:12 +0200 Subject: [PATCH] portability --- src/globit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/globit.c b/src/globit.c index 9bc8dc76..726c8bd8 100644 --- a/src/globit.c +++ b/src/globit.c @@ -143,7 +143,9 @@ globit_best(const char *pattern_, char **result) } else if (*pattern == '~') { /* yes, tilde */ is_absolute = 2; +#ifdef GLOB_TILDE glob_flags |= GLOB_TILDE; +#endif /* any slash in the pattern? */ while (*cp && *cp != '/') ++cp;