summaryrefslogtreecommitdiff
path: root/user/icewm/fix-globit.patch
blob: be04bd21917586f46a77ee177ae11fcf55033555 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;