diff options
-rw-r--r-- | Misc/NEWS | 3 | ||||
-rw-r--r-- | Modules/posixmodule.c | 2 |
2 files changed, 5 insertions, 0 deletions
@@ -37,6 +37,9 @@ Core and Builtins Library ------- +- Issue #10898: Allow compiling the posix module when the C library defines + a symbol named FSTAT. + - Issue #10916: mmap should not segfault when a file is mapped using 0 as length and a non-zero offset, and an attempt to read past the end of file is made (IndexError is raised instead). Patch by Ross Lagerwall. diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 870c0ea..a836af6 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -328,6 +328,8 @@ extern int lstat(const char *, struct stat *); /* choose the appropriate stat and fstat functions and return structs */ #undef STAT +#undef FSTAT +#undef STRUCT_STAT #if defined(MS_WIN64) || defined(MS_WINDOWS) # define STAT win32_stat # define FSTAT win32_fstat |