diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-02 13:46:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-02 13:46:43 (GMT) |
commit | 1f3e797dc0451f48e649bcab2c9fd80224ffdac0 (patch) | |
tree | d168a07c4dc8eeed2861947c04042d33d52dd0e4 /Modules/posixmodule.c | |
parent | 5141b1ebe07ad54279e0770b4704eaf76f24951d (diff) | |
download | cpython-1f3e797dc0451f48e649bcab2c9fd80224ffdac0.zip cpython-1f3e797dc0451f48e649bcab2c9fd80224ffdac0.tar.gz cpython-1f3e797dc0451f48e649bcab2c9fd80224ffdac0.tar.bz2 |
gh-108765: Remove old prototypes from pyport.h (#108782)
Move prototypes of gethostname(), _getpty() and struct termios from
pyport.h to the C code using them: posixmodule.c, socketmodule.c and
termios.c.
Replace "#ifdef SOLARIS" with "#ifdef __sun".
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 0436571..7615428 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -58,6 +58,13 @@ #include <stdio.h> // ctermid() #include <stdlib.h> // system() +// SGI apparently needs this forward declaration +#ifdef HAVE__GETPTY +# include <sys/types.h> // mode_t + extern char * _getpty(int *, int, mode_t, int); +#endif + + /* * A number of APIs are available on macOS from a certain macOS version. * To support building with a new SDK while deploying to older versions |