mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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".
This commit is contained in:
parent
5141b1ebe0
commit
1f3e797dc0
4 changed files with 22 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue