[Python-checkins] r88111 - in python/branches/py3k: Misc/NEWS Modules/posixmodule.c

antoine.pitrou python-checkins at python.org
Wed Jan 19 16:21:41 CET 2011


Author: antoine.pitrou
Date: Wed Jan 19 16:21:35 2011
New Revision: 88111

Log:
Issue #10898: Allow compiling the posix module when the C library defines
a symbol named FSTAT.



Modified:
   python/branches/py3k/Misc/NEWS
   python/branches/py3k/Modules/posixmodule.c

Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS	(original)
+++ python/branches/py3k/Misc/NEWS	Wed Jan 19 16:21:35 2011
@@ -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
 ============================================

Modified: python/branches/py3k/Modules/posixmodule.c
==============================================================================
--- python/branches/py3k/Modules/posixmodule.c	(original)
+++ python/branches/py3k/Modules/posixmodule.c	Wed Jan 19 16:21:35 2011
@@ -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


More information about the Python-checkins mailing list