homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alanh
Recipients alanh
Date 2011年01月12日.18:32:13
SpamBayes Score 0.0005496975
Marked as misclassified No
Message-id <1294857148.96.0.548396285489.issue10898@psf.upfronthosting.co.za>
In-reply-to
Content
Python 2.7.1 redefines FSTAT, but the problem is my libc already defines FSTAT in sys/ioctl.h.
I've worked around this by prefixing the FSTAT define with PYTHON. It should probably be done with STAT too.
--- Modules/posixmodule.c.old	2011年01月12日 01:46:45.000000000 +0000
+++ Modules/posixmodule.c	2011年01月12日 01:47:05.000000000 +0000
@@ -344,11 +344,11 @@
 #undef STAT
 #if defined(MS_WIN64) || defined(MS_WINDOWS)
 # define STAT win32_stat
-# define FSTAT win32_fstat
+# define PYTHON_FSTAT win32_fstat
 # define STRUCT_STAT struct win32_stat
 #else
 # define STAT stat
-# define FSTAT fstat
+# define PYTHON_FSTAT fstat
 # define STRUCT_STAT struct stat
 #endif
 
@@ -6641,7 +6641,7 @@
 if (!_PyVerify_fd(fd))
 return posix_error();
 Py_BEGIN_ALLOW_THREADS
- res = FSTAT(fd, &st);
+ res = PYTHON_FSTAT(fd, &st);
 Py_END_ALLOW_THREADS
 if (res != 0) {
 #ifdef MS_WINDOWS
History
Date User Action Args
2011年01月12日 18:32:29alanhsetrecipients: + alanh
2011年01月12日 18:32:28alanhsetmessageid: <1294857148.96.0.548396285489.issue10898@psf.upfronthosting.co.za>
2011年01月12日 18:32:13alanhlinkissue10898 messages
2011年01月12日 18:32:13alanhcreate

AltStyle によって変換されたページ (->オリジナル) /