summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-10-29 14:16:23 (GMT)
committerGitHub <noreply@github.com>2020-10-29 14:16:23 (GMT)
commit5776663675b48f011d428a5874cc3c79d1deb59e (patch)
tree13df320ed9473e63a92b8eed64a4d67c58f7d089 /Modules/posixmodule.c
parent350526105fa9b131d8b941ae753378b741dabb2f (diff)
downloadcpython-5776663675b48f011d428a5874cc3c79d1deb59e.zip
cpython-5776663675b48f011d428a5874cc3c79d1deb59e.tar.gz
cpython-5776663675b48f011d428a5874cc3c79d1deb59e.tar.bz2
bpo-42029: Remove IRIX code (GH-23023)
IRIX code was slowy removed in Python 2.4 (--with-sgi-dl), Python 3.3 (Irix threads), and Python 3.7.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index ccd64d6..203f985 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -6763,12 +6763,11 @@ error:
/* AIX uses /dev/ptc but is otherwise the same as /dev/ptmx */
-/* IRIX has both /dev/ptc and /dev/ptmx, use ptmx */
#if defined(HAVE_DEV_PTC) && !defined(HAVE_DEV_PTMX)
-#define DEV_PTY_FILE "/dev/ptc"
-#define HAVE_DEV_PTMX
+# define DEV_PTY_FILE "/dev/ptc"
+# define HAVE_DEV_PTMX
#else
-#define DEV_PTY_FILE "/dev/ptmx"
+# define DEV_PTY_FILE "/dev/ptmx"
#endif
#if defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) || defined(HAVE_DEV_PTMX)