Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
502d551c
Commit
502d551c
authored
Jan 05, 2018
by
Michael Felt
Committed by
xdegaye
Jan 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-32390: Fix compilation failure on AIX after f_fsid was added to os.statvfs() (#4972)
parent
94459fd7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
Misc/NEWS.d/next/Core and Builtins/2017-12-22-13-28-07.bpo-32390.QPj083.rst
...ore and Builtins/2017-12-22-13-28-07.bpo-32390.QPj083.rst
+1
-0
Modules/posixmodule.c
Modules/posixmodule.c
+6
-0
No files found.
Misc/NEWS.d/next/Core and Builtins/2017-12-22-13-28-07.bpo-32390.QPj083.rst
0 → 100644
View file @
502d551c
Fix the compilation failure on AIX after the f_fsid field has been added to the object returned by os.statvfs() (issue #32143). Original patch by Michael Felt.
Modules/posixmodule.c
View file @
502d551c
...
...
@@ -9336,7 +9336,13 @@ _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
/* The _ALL_SOURCE feature test macro defines f_fsid as a structure
* (issue #32390). */
#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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment