]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108765: Remove old prototypes from pyport.h (#108782)
authorVictor Stinner <vstinner@python.org>
Sat, 2 Sep 2023 13:46:43 +0000 (15:46 +0200)
committerGitHub <noreply@github.com>
Sat, 2 Sep 2023 13:46:43 +0000 (15:46 +0200)
commit1f3e797dc0451f48e649bcab2c9fd80224ffdac0
treed168a07c4dc8eeed2861947c04042d33d52dd0e4
parent5141b1ebe07ad54279e0770b4704eaf76f24951d
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".
Include/pyport.h
Modules/posixmodule.c
Modules/socketmodule.c
Modules/termios.c