summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-02-18 16:21:00 (GMT)
committerGuido van Rossum <guido@python.org>1998-02-18 16:21:00 (GMT)
commitaeca79b0f6b1bc7e9e3b415254b353a5288eefbb (patch)
tree0947c9627a7e453cafbd52909bb4bf4a4261b83c /Python
parent9caa11014108f4a9f527983df3e48a2661b4e787 (diff)
downloadcpython-aeca79b0f6b1bc7e9e3b415254b353a5288eefbb.zip
cpython-aeca79b0f6b1bc7e9e3b415254b353a5288eefbb.tar.gz
cpython-aeca79b0f6b1bc7e9e3b415254b353a5288eefbb.tar.bz2
Small patches to the DJGPP version of check_case().
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index 7917633..fd92698 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 <dir.h>
+
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)",