File python3.6-verify_fd.patch of Package libxml2.17678
_PyVerify_fd is a no-op outside of Windows CRT
and was dropped from Python 3.6
Index: libxml2-2.9.5/python/types.c
===================================================================
--- libxml2-2.9.5.orig/python/types.c
+++ libxml2-2.9.5/python/types.c
@@ -31,8 +31,6 @@ libxml_PyFileGet(PyObject *f) {
const char *mode;
fd = PyObject_AsFileDescriptor(f);
- if (!_PyVerify_fd(fd))
- return(NULL);
/*
* Get the flags on the fd to understand how it was opened
*/