summaryrefslogtreecommitdiffstats
path: root/Modules/_cursesmodule.c
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2002-01-16 15:14:49 (GMT)
committerMichael W. Hudson <mwh@python.net>2002-01-16 15:14:49 (GMT)
commitf24281251fef00f827176c77b0a6ce987e12c145 (patch)
treef9e0920404f8521714b627e7f2c8dc41eefe572c /Modules/_cursesmodule.c
parent8fbd4a3e78190bb9dfa0e44cb2af3d7118f3660c (diff)
downloadcpython-f24281251fef00f827176c77b0a6ce987e12c145.zip
cpython-f24281251fef00f827176c77b0a6ce987e12c145.tar.gz
cpython-f24281251fef00f827176c77b0a6ce987e12c145.tar.bz2
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.
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r--Modules/_cursesmodule.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 5a7a642..893ccaa 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -2310,13 +2310,13 @@ 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. */
+#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)) {
@@ -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);
}