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 dilyan.palauzov
Recipients dilyan.palauzov
Date 2017-10-10.17:05:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507655150.66.0.213398074469.issue31748@psf.upfronthosting.co.za>
In-reply-to
Content
These are needed only sometimes.

diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1466,6 +1466,7 @@ path_error2(path_t *path, path_t *path2)
 
 /* POSIX generic methods */
 
+#if defined(HAVE_FSYNC) || defined(HAVE_FDATASYNC) || defined(HAVE_FCHDIR)
 static int
 fildes_converter(PyObject *o, void *p)
 {
@@ -1495,6 +1496,7 @@ posix_fildes_fd(int fd, int (*func)(int))
         return (!async_err) ? posix_error() : NULL;
     Py_RETURN_NONE;
 }
+#endif
 
 
 #ifdef MS_WINDOWS
History
Date User Action Args
2017-10-10 17:05:50dilyan.palauzovsetrecipients: + dilyan.palauzov
2017-10-10 17:05:50dilyan.palauzovsetmessageid: <1507655150.66.0.213398074469.issue31748@psf.upfronthosting.co.za>
2017-10-10 17:05:50dilyan.palauzovlinkissue31748 messages
2017-10-10 17:05:50dilyan.palauzovcreate