[Python-checkins] CVS: python/dist/src/Modules _cursesmodule.c,2.61,2.62
Michael Hudson
mwh@users.sourceforge.net
2002年1月16日 07:14:51 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv11008
Modified Files:
_cursesmodule.c
Log Message:
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.
Index: _cursesmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_cursesmodule.c,v
retrieving revision 2.61
retrieving revision 2.62
diff -C2 -d -r2.61 -r2.62
*** _cursesmodule.c 2001年12月08日 18:02:54 2.61
--- _cursesmodule.c 2002年01月16日 15:14:49 2.62
***************
*** 2311,2321 ****
}
! #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);
#else
--- 2311,2321 ----
}
! #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
***************
*** 2352,2356 ****
break;
}
! #endif /* __hpux */
return PyString_FromString(result);
}
--- 2352,2356 ----
break;
}
! #endif /* defined(__hpux) || defined(_AIX) */
return PyString_FromString(result);
}