From bf757d6952f7ac30b9f0c819008cc4feee1b5cd3 Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on Debian Linux)" <rob@synchro.net>
Date: Mon, 29 Apr 2024 22:01:25 -0700
Subject: [PATCH] Not every platform has GLOB_ONLYDIR support

... kind of as I suspected
---
 src/xpdev/dirwrap.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/xpdev/dirwrap.c b/src/xpdev/dirwrap.c
index 1384f3f5b8..249b08ab79 100644
--- a/src/xpdev/dirwrap.c
+++ b/src/xpdev/dirwrap.c
@@ -636,6 +636,9 @@ static bool getfilecase(char *path, bool dir)
 	}
 #endif
 
+#if !defined GLOB_ONLYDIR
+	#define GLOB_ONLYDIR 0
+#endif
 	if(glob(globme, dir ? GLOB_ONLYDIR : GLOB_MARK, NULL, &glb) != 0)
 		return(false);
 
-- 
GitLab