*** screen.c.ORIG Fri Oct 10 22:43:24 2008 --- screen.c Fri Oct 10 22:43:38 2008 *************** *** 365,371 **** --- 365,373 ---- /* remember the erase and kill characters */ ch_erase = old_settings.sg_erase; ch_kill = old_settings.sg_kill; + #ifndef _AIX ch_werase = old_settings.sg_werase; + #endif #ifdef TOStop /* get the local mode word */ *** top.c.ORIG Tue Sep 8 08:56:03 2009 --- top.c Tue Sep 8 09:01:52 2009 *************** *** 46,51 **** --- 46,54 ---- #include #include #include + #ifdef _AIX + #include + #endif #ifdef HAVE_SYS_UTSNAME_H #include *************** *** 733,739 **** --- 736,746 ---- if (uname(&uts) == 0) { + #ifndef _AIX if (strcmp(uts.machine, UNAME_HARDWARE) != 0) + #else + if ((strcmp(uts.sysname, "AIX") != 0) && (atoi(uts.version) < 5)) + #endif { fprintf(stderr, "%s: incompatible hardware platform\n", myname);