Kaydet (Commit) f2428125 authored tarafından Michael W. Hudson's avatar Michael W. Hudson

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.
üst 8fbd4a3e
...@@ -2310,13 +2310,13 @@ PyCurses_tparm(PyObject *self, PyObject *args) ...@@ -2310,13 +2310,13 @@ PyCurses_tparm(PyObject *self, PyObject *args)
return NULL; return NULL;
} }
#ifdef __hpux #if defined(__hpux) || defined(_AIX)
/* tparm is declared with 10 arguments on HP/UX 11. /* tparm is declared with 10 arguments on a few platforms
If this is a problem on other platforms as well, (HP-UX, AIX). If this proves to be a problem on other
an autoconf test should be added to determine platforms as well, perhaps an autoconf test should be
whether tparm can be called with a variable number added to determine whether tparm can be called with a
of arguments. Perhaps the other arguments should variable number of arguments. Perhaps the other arguments
be initialized in this case also. */ should be initialized in this case also. */
result = tparm(fmt,i1,i2,i3,i4,i5,i6,i7,i8,i9); result = tparm(fmt,i1,i2,i3,i4,i5,i6,i7,i8,i9);
#else #else
switch (PyTuple_GET_SIZE(args)) { switch (PyTuple_GET_SIZE(args)) {
...@@ -2351,7 +2351,7 @@ PyCurses_tparm(PyObject *self, PyObject *args) ...@@ -2351,7 +2351,7 @@ PyCurses_tparm(PyObject *self, PyObject *args)
result = tparm(fmt,i1,i2,i3,i4,i5,i6,i7,i8,i9); result = tparm(fmt,i1,i2,i3,i4,i5,i6,i7,i8,i9);
break; break;
} }
#endif /* __hpux */ #endif /* defined(__hpux) || defined(_AIX) */
return PyString_FromString(result); return PyString_FromString(result);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment