summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-03-21 03:08:31 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-03-21 03:08:31 (GMT)
commit2deaddb0d6ea57596ce02ea0ab43e9ef54ee3887 (patch)
tree8095300f2c6785e0a58884b8ad338fd3d2bcc4e9 /Modules/posixmodule.c
parent82d61956faa9a6a884ad9327f9f5d7337f3a9bcb (diff)
downloadcpython-2deaddb0d6ea57596ce02ea0ab43e9ef54ee3887.zip
cpython-2deaddb0d6ea57596ce02ea0ab43e9ef54ee3887.tar.gz
cpython-2deaddb0d6ea57596ce02ea0ab43e9ef54ee3887.tar.bz2
Get rid of warning on IRIX
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 4e7f9bc..ab4992e 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -2573,7 +2573,8 @@ posix_fork(PyObject *self, PyObject *noargs)
#endif
/* AIX uses /dev/ptc but is otherwise the same as /dev/ptmx */
-#ifdef HAVE_DEV_PTC
+/* 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
#else