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 xdegaye
Recipients David.Edelsohn, Michael.Felt, vstinner, xdegaye
Date 2018-01-03.17:03:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1514999033.59.0.467229070634.issue32390@psf.upfronthosting.co.za>
In-reply-to
Content
The following patch may be less invasive and more explicit:

diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 38b6c80e6b..e0bb4ba869 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -9325,7 +9325,11 @@ _pystatvfs_fromstructstatvfs(struct statvfs st) {
     PyStructSequence_SET_ITEM(v, 8, PyLong_FromLong((long) st.f_flag));
     PyStructSequence_SET_ITEM(v, 9, PyLong_FromLong((long) st.f_namemax));
 #endif
+#if defined(_AIX) && defined(_ALL_SOURCE)
+    PyStructSequence_SET_ITEM(v, 10, PyLong_FromUnsignedLong(st.f_fsid.val[0]));
+#else
     PyStructSequence_SET_ITEM(v, 10, PyLong_FromUnsignedLong(st.f_fsid));
+#endif
     if (PyErr_Occurred()) {
         Py_DECREF(v);
         return NULL;
History
Date User Action Args
2018-01-03 17:03:53xdegayesetrecipients: + xdegaye, vstinner, David.Edelsohn, Michael.Felt
2018-01-03 17:03:53xdegayesetmessageid: <1514999033.59.0.467229070634.issue32390@psf.upfronthosting.co.za>
2018-01-03 17:03:53xdegayelinkissue32390 messages
2018-01-03 17:03:53xdegayecreate