diff Python/import.c @ 7367:0c79cafec4bc legacy-trunk

Small patches to the DJGPP version of check_case().
author Guido van Rossum <guido@python.org>
date Wed, 18 Feb 1998 16:21:00 +0000
parents 067e4813c6d6
children 185c1d47ce7a
line wrap: on
line diff
--- a/Python/import.c	Wed Feb 18 16:10:22 1998 +0000
+++ b/Python/import.c	Wed Feb 18 16:21:00 1998 +0000
@@ -1006,6 +1006,8 @@
 #endif /* macintosh */
 
 #ifdef DJGPP
+#include <dir.h>
+
 static int
 check_case(char *buf, int len, int namelen, char *name)
 {
@@ -1014,7 +1016,7 @@
 
 	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)",