]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-107211: Fix select extension build on Solaris (#108012)
authorVictor Stinner <vstinner@python.org>
Wed, 16 Aug 2023 20:26:22 +0000 (22:26 +0200)
committerGitHub <noreply@github.com>
Wed, 16 Aug 2023 20:26:22 +0000 (22:26 +0200)
Export the internal _Py_open() and _Py_write() functions for Solaris:
the select shared extension uses them.

Include/internal/pycore_fileutils.h

index cb5ac76772de5e9addc5a1b1b01d508d264a19ab..0ed139f79b14295adc8f0efa785674749f4093c4 100644 (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);