From e47e093f7009ca758f044c52178071b68e48bf2a Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 19 Jan 2011 15:21:35 +0000 Subject: Issue #10898: Allow compiling the posix module when the C library defines a symbol named FSTAT. --- Misc/NEWS | 3 +++ Modules/posixmodule.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Misc/NEWS b/Misc/NEWS index 1bc3b2f..03912b3 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -16,6 +16,9 @@ Core and Builtins Library ------- +- Issue #10898: Allow compiling the posix module when the C library defines + a symbol named FSTAT. + What's New in Python 3.2 Release Candidate 1 ============================================ diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 3b9fd05..39beaba 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -326,6 +326,8 @@ static int win32_can_symlink = 0; /* 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 -- cgit v0.12