]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Get rid of warning on IRIX
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 21 Mar 2003 03:08:31 +0000 (03:08 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 21 Mar 2003 03:08:31 +0000 (03:08 +0000)
Modules/posixmodule.c

index 4e7f9bcfc00334095013598f165bd545599f20bc..ab4992ec144d66cd4e19de14e798abd80ae5af5e 100644 (file)
@@ -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