summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-01-19 15:21:35 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-01-19 15:21:35 (GMT)
commite47e093f7009ca758f044c52178071b68e48bf2a (patch)
tree2067d6091c85f30a54f6cd49f1279498c87c2089 /Modules
parentbe9994e0d1afe4c2a1d28041ca0dce50ef9d786d (diff)
downloadcpython-e47e093f7009ca758f044c52178071b68e48bf2a.zip
cpython-e47e093f7009ca758f044c52178071b68e48bf2a.tar.gz
cpython-e47e093f7009ca758f044c52178071b68e48bf2a.tar.bz2
Issue #10898: Allow compiling the posix module when the C library defines
a symbol named FSTAT.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 2 insertions, 0 deletions
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