]> granicus.if.org Git - python/commitdiff
Issue #10898: Allow compiling the posix module when the C library defines
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 19 Jan 2011 15:21:35 +0000 (15:21 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 19 Jan 2011 15:21:35 +0000 (15:21 +0000)
a symbol named FSTAT.

Misc/NEWS
Modules/posixmodule.c

index 1bc3b2fc0b54aa67183f2cadf0256a79901f1eff..03912b3cff155035568c7bea8479cf8cafa24f85 100644 (file)
--- 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
 ============================================
index 3b9fd056f544f907e840ad160fd590d81fb48a8d..39beaba691b93d8a6a945b4b5446b51f676a6e45 100644 (file)
@@ -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