From: Guido van Rossum Date: Wed, 18 Feb 1998 16:21:00 +0000 (+0000) Subject: Small patches to the DJGPP version of check_case(). X-Git-Tag: v1.5.1~687 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aeca79b0f6b1bc7e9e3b415254b353a5288eefbb;p=python Small patches to the DJGPP version of check_case(). --- diff --git a/Python/import.c b/Python/import.c index 7917633f2c..fd92698d44 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1006,6 +1006,8 @@ check_case(char *buf, int len, int namelen, char *name) #endif /* macintosh */ #ifdef DJGPP +#include + static int check_case(char *buf, int len, int namelen, char *name) { @@ -1014,7 +1016,7 @@ check_case(char *buf, int len, int namelen, char *name) if (getenv("PYTHONCASEOK") != NULL) return 1; - done = findfirst(buf, &ffblk, FA_ARCH|FA_RDONLY|FA_HIDDEN); + done = findfirst(buf, &ffblk, FA_ARCH|FA_RDONLY|FA_HIDDEN|FA_DIREC); if (done) { PyErr_Format(PyExc_NameError, "Can't find file for module %.100s\n(filename %.300s)",