mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +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
|
@ -111,9 +111,13 @@ Local naming conventions:
|
|||
#include "pycore_fileutils.h" // _Py_set_inheritable()
|
||||
#include "pycore_moduleobject.h" // _PyModule_GetState
|
||||
|
||||
// gethostname() prototype missing from Solaris standard header files
|
||||
#ifdef __sun
|
||||
extern int gethostname(char *, int);
|
||||
#endif
|
||||
|
||||
#ifdef _Py_MEMORY_SANITIZER
|
||||
# include <sanitizer/msan_interface.h>
|
||||
# include <sanitizer/msan_interface.h>
|
||||
#endif
|
||||
|
||||
/* Socket object documentation */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue