mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
gh-107211: Fix select extension build on Solaris (#108012)
Export the internal _Py_open() and _Py_write() functions for Solaris: the select shared extension uses them.
This commit is contained in:
parent
57fcf96e4f
commit
fb8fe377c4
1 changed files with 4 additions and 2 deletions
|
|
@ -109,7 +109,8 @@ PyAPI_FUNC(int) _Py_stat(
|
|||
PyObject *path,
|
||||
struct stat *status);
|
||||
|
||||
extern int _Py_open(
|
||||
// Export for 'select' shared extension (Solaris newDevPollObject() uses it)
|
||||
PyAPI_FUNC(int) _Py_open(
|
||||
const char *pathname,
|
||||
int flags);
|
||||
|
||||
|
|
@ -126,7 +127,8 @@ extern Py_ssize_t _Py_read(
|
|||
void *buf,
|
||||
size_t count);
|
||||
|
||||
extern Py_ssize_t _Py_write(
|
||||
// Export for 'select' shared extension (Solaris devpoll_flush() uses it)
|
||||
PyAPI_FUNC(Py_ssize_t) _Py_write(
|
||||
int fd,
|
||||
const void *buf,
|
||||
size_t count);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue