changeset 67688:91abe855072a

Issue #10898: Allow compiling the posix module when the C library defines a symbol named FSTAT.
author Antoine Pitrou <solipsis@pitrou.net>
date Wed, 19 Jan 2011 15:21:35 +0000
parents de925361eba5
children c35400c36304
files Misc/NEWS Modules/posixmodule.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Misc/NEWS	Wed Jan 19 08:44:33 2011 +0000
+++ b/Misc/NEWS	Wed Jan 19 15:21:35 2011 +0000
@@ -16,6 +16,9 @@
 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
 ============================================
--- a/Modules/posixmodule.c	Wed Jan 19 08:44:33 2011 +0000
+++ b/Modules/posixmodule.c	Wed Jan 19 15:21:35 2011 +0000
@@ -326,6 +326,8 @@
 
 /* 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