mirror of
https://github.com/python/cpython.git
synced 2025-10-29 09:29:26 +00:00
Jack Jansen, Mac patch:
Include stat.h if needed; different Mac filename compare
This commit is contained in:
parent
4cc6ac7b87
commit
63e97ad4ea
1 changed files with 3 additions and 2 deletions
|
|
@ -39,6 +39,8 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
#endif
|
#endif
|
||||||
#ifndef DONT_HAVE_SYS_STAT_H
|
#ifndef DONT_HAVE_SYS_STAT_H
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#elif defined(HAVE_STAT_H)
|
||||||
|
#include <stat.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PYCC_VACPP)
|
#if defined(PYCC_VACPP)
|
||||||
|
|
@ -1129,8 +1131,7 @@ check_case(char *buf, int len, int namelen, char *name)
|
||||||
name, buf);
|
name, buf);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
p2cstr(fss.name);
|
if ( namelen > fss.name[0] || strncmp(name, (char *)fss.name+1, namelen) != 0 ) {
|
||||||
if ( strncmp(name, (char *)fss.name, namelen) != 0 ) {
|
|
||||||
PyErr_Format(PyExc_NameError,
|
PyErr_Format(PyExc_NameError,
|
||||||
"Case mismatch for module name %.100s\n(filename %.300s)",
|
"Case mismatch for module name %.100s\n(filename %.300s)",
|
||||||
name, fss.name);
|
name, fss.name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue