[Patches] Patch to import.c
Jack Jansen
Jack.Jansen@oratrix.com
Sat, 03 Jun 2000 00:42:56 +0200
This is a multi-part message in MIME format.
--------------FA89716025420AE99B4B9785
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Oops, here's the actual patch to import.c. I should get this inferior mail
program to warn me when I send something to patches@python.org and don't
include an attachment:-)
--------------FA89716025420AE99B4B9785
Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="522A6368";
name="import.diffs-"
Content-Transfer-Encoding: 7bit
Content-Description: Unknown Document
Content-Disposition: inline;
filename="import.diffs-"
Index: import.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Python/import.c,v
retrieving revision 2.134
diff -c -r2.134 import.c
*** import.c 2000/05/03 23:44:39 2.134
--- import.c 2000/06/02 13:34:56
***************
*** 60,65 ****
--- 60,69 ----
#endif
#ifndef DONT_HAVE_SYS_STAT_H
#include <sys/stat.h>
+ #else
+ #ifdef HAVE_STAT_H
+ #include <stat.h>
+ #endif
#endif
#if defined(PYCC_VACPP)
***************
*** 1132,1139 ****
name, buf);
return 0;
}
! p2cstr(fss.name);
! if ( strncmp(name, (char *)fss.name, namelen) != 0 ) {
PyErr_Format(PyExc_NameError,
"Case mismatch for module name %.100s\n(filename %.300s)",
name, fss.name);
--- 1136,1142 ----
name, buf);
return 0;
}
! if ( namelen > fss.name[0] || strncmp(name, (char *)fss.name+1, namelen) != 0 ) {
PyErr_Format(PyExc_NameError,
"Case mismatch for module name %.100s\n(filename %.300s)",
name, fss.name);
--------------FA89716025420AE99B4B9785--