summaryrefslogtreecommitdiff
path: root/user/icewm/fix-globit.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/icewm/fix-globit.patch')
-rw-r--r--user/icewm/fix-globit.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/user/icewm/fix-globit.patch b/user/icewm/fix-globit.patch
new file mode 100644
index 000000000..be04bd219
--- /dev/null
+++ b/user/icewm/fix-globit.patch
@@ -0,0 +1,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;