From cb0dbdaf0928ea962e5b8c9de4793b6415de5086 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Sat, 24 Feb 2024 11:39:32 -0500
Subject: [PATCH] Fix glob() for Win64

_fintfirst() is declared in the Mingw-w64 headers as an intptr_t,
which tracks.  Can't find _findfirst on MSDN, so that's good enough
for me... let's see what the pipeline says.
---
 src/xpdev/dirwrap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xpdev/dirwrap.c b/src/xpdev/dirwrap.c
index 844c6edf8f..0f0b0f801c 100644
--- a/src/xpdev/dirwrap.c
+++ b/src/xpdev/dirwrap.c
@@ -231,7 +231,7 @@ int	glob(const char *pattern, int flags, void* unused, glob_t* glob)
 int	glob(const char *pattern, int flags, void* unused, glob_t* glob)
 {
     struct	_finddata_t ff;
-	long	ff_handle;
+	intptr_t ff_handle;
 	size_t	found=0;
 	char	path[MAX_PATH+1];
 	char*	p;
-- 
GitLab