diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-02 13:46:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-02 13:46:43 (GMT) |
commit | 1f3e797dc0451f48e649bcab2c9fd80224ffdac0 (patch) | |
tree | d168a07c4dc8eeed2861947c04042d33d52dd0e4 /Modules/socketmodule.c | |
parent | 5141b1ebe07ad54279e0770b4704eaf76f24951d (diff) | |
download | cpython-1f3e797dc0451f48e649bcab2c9fd80224ffdac0.zip cpython-1f3e797dc0451f48e649bcab2c9fd80224ffdac0.tar.gz cpython-1f3e797dc0451f48e649bcab2c9fd80224ffdac0.tar.bz2 |
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".
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index e368185..2f12c9c 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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 */ |