From 249f68e3ceaaabdd40964f8ab85645da529ec469 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Wed, 30 Sep 2015 11:13:38 +0100 Subject: win32: append '/' to bare drive name in opendir Make 'ls c:' and 'ls c:/*' do the right thing. --- include/mingw.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/mingw.h b/include/mingw.h index c15161483..6d494b7ef 100644 --- a/include/mingw.h +++ b/include/mingw.h @@ -434,6 +434,12 @@ int mingw_rmdir(const char *name); */ int utimes(const char *file_name, const struct timeval times[2]); +/* + * dirent.h + */ +DIR *mingw_opendir(const char *path); +#define opendir mingw_opendir + /* * MinGW specific */ -- cgit v1.2.3-55-g6feb