summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-16 20:26:22 (GMT)
committerGitHub <noreply@github.com>2023-08-16 20:26:22 (GMT)
commitfb8fe377c4ddaea24ea6aa0a8f5d036986373d39 (patch)
tree61fa850cfe5f7a16131fae02a0dcd42c4ef5b347
parent57fcf96e4f21b8955b3ae4b4d70e4b756949712f (diff)
downloadcpython-fb8fe377c4ddaea24ea6aa0a8f5d036986373d39.zip
cpython-fb8fe377c4ddaea24ea6aa0a8f5d036986373d39.tar.gz
cpython-fb8fe377c4ddaea24ea6aa0a8f5d036986373d39.tar.bz2
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.
-rw-r--r--Include/internal/pycore_fileutils.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Include/internal/pycore_fileutils.h b/Include/internal/pycore_fileutils.h
index cb5ac76..0ed139f 100644
--- a/Include/internal/pycore_fileutils.h
+++ b/Include/internal/pycore_fileutils.h
@@ -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);