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:
Victor Stinner 2023-08-16 22:26:22 +02:00 committed by GitHub
parent 57fcf96e4f
commit fb8fe377c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);