gh-108765: Remove old prototypes from pyport.h#108782
Conversation
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".
|
@kulikjak: It would be nice if you can double check the Solaris change: |
Sorry, something went wrong.
|
Hi @vstinner, can you, please, remove this part completely? There is already and issue and PR for this that is forgotten a little: As mentioned there, As for the define guard, |
Sorry, something went wrong.
|
I just realized that it's merged already - I rebased that older PR to remove it. |
Sorry, something went wrong.
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".