From c6d274d609594181f2b294b177079ee2868b4a27 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 1 Sep 2023 18:48:59 +0200 Subject: [PATCH] gh-108765: Remove legacy prototypes from pyport.h Remove prototypes for old Solaris and old QNX versions from pyport.h. --- Include/pyport.h | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/Include/pyport.h b/Include/pyport.h index 115b54fd969287..4d790c7ddf09eb 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -422,31 +422,6 @@ extern "C" { # define Py_NO_INLINE #endif -/************************************************************************** -Prototypes that are missing from the standard include files on some systems -(and possibly only some versions of such systems.) - -Please be conservative with adding new ones, document them and enclose them -in platform-specific #ifdefs. -**************************************************************************/ - -#ifdef SOLARIS -/* Unchecked */ -extern int gethostname(char *, int); -#endif - -#ifdef HAVE__GETPTY -#include /* we need to import mode_t */ -extern char * _getpty(int *, int, mode_t, int); -#endif - -/* On QNX 6, struct termio must be declared by including sys/termio.h - if TCGETA, TCSETA, TCSETAW, or TCSETAF are used. sys/termio.h must - be included before termios.h or it will generate an error. */ -#if defined(HAVE_SYS_TERMIO_H) && !defined(__hpux) -#include -#endif - /* On 4.4BSD-descendants, ctype functions serves the whole range of * wchar_t character set rather than single byte code points only.