◐ Shell
clean mode source ↗

gh-108765: Remove old prototypes from pyport.h by vstinner · Pull Request #108782 · python/cpython

Conversation

@vstinner

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".

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".

This was referenced

Sep 1, 2023

@vstinner vstinner marked this pull request as ready for review

September 2, 2023 13:46

@vstinner

Buildbots are happy with this change: #108784

@vstinner

@kulikjak: It would be nice if you can double check the Solaris change:

Replace "#ifdef SOLARIS" with "#ifdef __sun".

@kulikjak

@kulikjak

I just realized that it's merged already - I rebased that older PR to remove it.
#23208

Labels