mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 06:12:27 +00:00
Source changes for compilation
These are the commits from https://github.com/ahgamut/cpython/tree/cosmo_py36 squashed for simplicity. Also included is the pyconfig.h used for compilation. The pyconfig.h has to be changed manually in case Cosmopolitan gets new features.
This commit is contained in:
parent
0c4c56ff39
commit
5ef64dbcdb
82 changed files with 2009 additions and 424 deletions
4
third_party/python/Modules/zipimport.c
vendored
4
third_party/python/Modules/zipimport.c
vendored
|
@ -1259,7 +1259,9 @@ eq_mtime(time_t t1, time_t t2)
|
|||
if (d < 0)
|
||||
d = -d;
|
||||
/* dostime only stores even seconds, so be lenient */
|
||||
return d <= 1;
|
||||
if(Py_VerboseFlag)
|
||||
PySys_WriteStderr("# mtime diff = %ld (should be <=1)\n", d);
|
||||
return 1 || d <= 1;
|
||||
}
|
||||
|
||||
/* Given the contents of a .pyc file in a buffer, unmarshal the data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue