1. Armin Rigo
  2. cpython-withatomic

Commits

Michael W. Hudson  committed 4ce517b

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.

  • Participants
  • Parent commits fb9a008
  • Branches 2.2

Comments (0)

Files changed (1)

File Modules/_cursesmodule.c

View file
  • Ignore whitespace
 		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:
 		result = tparm(fmt,i1,i2,i3,i4,i5,i6,i7,i8,i9);
 		break;
 	}
-#endif /* __hpux */
+#endif /* defined(__hpux) || defined(_AIX) */
 	return PyString_FromString(result);
 }