From 2deaddb0d6ea57596ce02ea0ab43e9ef54ee3887 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 21 Mar 2003 03:08:31 +0000 Subject: Get rid of warning on IRIX --- Modules/posixmodule.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v0.12