mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-35550: Fix incorrect Solaris define guards (GH-11275)
Python source code uses on several places ifdef sun or defined(sun) without the underscores, which is not standard compliant and shouldn't be used. Defines should check for __sun instead. Reference: http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#Solaris https://bugs.python.org/issue35550
This commit is contained in:
parent
30e023256a
commit
6f9bc72c79
6 changed files with 8 additions and 7 deletions
|
@ -6335,7 +6335,7 @@ os_openpty_impl(PyObject *module)
|
|||
#endif
|
||||
#if defined(HAVE_DEV_PTMX) && !defined(HAVE_OPENPTY) && !defined(HAVE__GETPTY)
|
||||
PyOS_sighandler_t sig_saved;
|
||||
#ifdef sun
|
||||
#if defined(__sun) && defined(__SVR4)
|
||||
extern char *ptsname(int fildes);
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue