--- Python-3.5.1-orig/Modules/termios.c	2015-12-07 02:39:10 +0100
+++ Python-3.5.1-aix/Modules/termios.c	2016-06-22 14:06:42 +0200
@@ -11,6 +11,17 @@
 #include <termios.h>
 #include <sys/ioctl.h>
 
+#ifndef VWERASE
+#ifdef VWERSE
+       #define VWERASE VWERSE
+#endif
+#endif
+#ifndef VDISCARD
+       #ifdef VDISCRD
+       #define VDISCARD VDISCRD
+       #endif
+#endif
+
 /* HP-UX requires that this be included to pick up MDCD, MCTS, MDSR,
  * MDTR, MRI, and MRTS (appearantly used internally by some things
  * defined as macros; these are not used here directly).
