[New-bugs-announce] [issue46303] _Py_stat using incorrect type for status argument

Paul Campbell report at bugs.python.org
Fri Jan 7 22:48:43 EST 2022

New submission from Paul Campbell <pacampbell87 at gmail.com>:

While attempting to embed the full cpython source in my application, I found that during compilation on Windows, there was a compilation issue due to struct stat not being defined. Taking a look at the file cpython/fileutils.h, it seems that the type of the status argument should be _Py_stat_struct instead of just stat to satisfy compilation for all supported platforms.

messages: 410073
nosy: pacampbell
priority: normal
severity: normal
status: open
title: _Py_stat using incorrect type for status argument
versions: Python 3.11

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list