Skip to content

Commit fb8fe37

Browse files
authored
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.
1 parent 57fcf96 commit fb8fe37

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Include/internal/pycore_fileutils.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ PyAPI_FUNC(int) _Py_stat(
109109
PyObject *path,
110110
struct stat *status);
111111

112-
extern int _Py_open(
112+
// Export for 'select' shared extension (Solaris newDevPollObject() uses it)
113+
PyAPI_FUNC(int) _Py_open(
113114
const char *pathname,
114115
int flags);
115116

@@ -126,7 +127,8 @@ extern Py_ssize_t _Py_read(
126127
void *buf,
127128
size_t count);
128129

129-
extern Py_ssize_t _Py_write(
130+
// Export for 'select' shared extension (Solaris devpoll_flush() uses it)
131+
PyAPI_FUNC(Py_ssize_t) _Py_write(
130132
int fd,
131133
const void *buf,
132134
size_t count);

0 commit comments

Comments
 (0)