summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2002-03-17 19:02:10 (GMT)
committerMichael W. Hudson <mwh@python.net>2002-03-17 19:02:10 (GMT)
commit32b2b2d99d336ed93520c9b0be0b3670ac8acdc0 (patch)
tree563d0bc0c4b8690a5af49d98530cf0e4455e4094
parent3c9dbe200c32cd4fe43fe3c9ac1fcb03d50c1b22 (diff)
downloadcpython-32b2b2d99d336ed93520c9b0be0b3670ac8acdc0.zip
cpython-32b2b2d99d336ed93520c9b0be0b3670ac8acdc0.tar.gz
cpython-32b2b2d99d336ed93520c9b0be0b3670ac8acdc0.tar.bz2
Backport my fix from a whiles back:
Fix for [ #504284 ] Last build problems on AIX I'm ignoring the suggestion that this should be an autoconf test in the interests of having a fix today. Feel free to quibble.
-rw-r--r--Modules/_cursesmodule.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 9ad76bd..2bee69c 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -2310,14 +2310,14 @@ PyCurses_tparm(PyObject *self, PyObject *args)
return NULL;
}
-#ifdef __hpux
- /* tparm is declared with 10 arguments on HP/UX 11.
- If this is a problem on other platforms as well,
- an autoconf test should be added to determine
- whether tparm can be called with a variable number
- of arguments. Perhaps the other arguments should
- be initialized in this case also. */
- result = tparm(fmt,i1,i2,i3,i4,i5,i6,i7,i8,i9);
+#if defined(__hpux) || defined(_AIX)
+ /* tparm is declared with 10 arguments on a few platforms
+ (HP-UX, AIX). If this proves to be a problem on other
+ platforms as well, perhaps an autoconf test should be
+ added to determine whether tparm can be called with a
+ variable number of arguments. Perhaps the other arguments
+ should be initialized in this case also. */
+ result = tparm(fmt,i1,i2,i3,i4,i5,i6,i7,i8,i9);
#else
switch (PyTuple_GET_SIZE(args)) {
case 1:
@@ -2351,7 +2351,7 @@ PyCurses_tparm(PyObject *self, PyObject *args)
result = tparm(fmt,i1,i2,i3,i4,i5,i6,i7,i8,i9);
break;
}
-#endif /* __hpux */
+#endif /* defined(__hpux) || defined(_AIX) */
return PyString_FromString(result);
}