Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
diff -ru xterm-331.orig/configure xterm-331/configure
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
--- xterm-331.orig/configure	2017-12-25 13:39:17.000000000 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
+++ xterm-331/configure	2018-02-07 21:24:41.886291513 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
@@ -2574,7 +2574,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 	cf_xopen_source="-D_SGI_SOURCE"
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 	cf_XOPEN_SOURCE=
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 	;;
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
-(linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
+(linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|midipix*)
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 echo "$as_me:2579: checking if we must define _GNU_SOURCE" >&5
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
diff -ru xterm-331.orig/main.c xterm-331/main.c
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
--- xterm-331.orig/main.c	2017-12-20 02:17:24.000000000 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
+++ xterm-331/main.c	2018-02-07 21:35:36.776089906 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
@@ -154,7 +154,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #define KANJI
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #endif
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
-#ifdef linux
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
+#if defined(linux) || defined(__midipix__)
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #define USE_SYSV_PGRP
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #define USE_SYSV_SIGNALS
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #define WTMP
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
@@ -2785,7 +2785,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
     }
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 }
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
-#if defined(__osf__) || (defined(__GLIBC__) && !defined(USE_USG_PTYS)) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
+#if defined(__osf__) || (defined(__GLIBC__) && !defined(USE_USG_PTYS)) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__midipix__)
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #define USE_OPENPTY 1
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 static int opened_tty = -1;
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #endif
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
diff -ru xterm-331.orig/ptyx.h xterm-331/ptyx.h
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
--- xterm-331.orig/ptyx.h	2017-12-30 15:42:05.000000000 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
+++ xterm-331/ptyx.h	2018-02-07 21:04:06.021826172 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
@@ -185,7 +185,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #undef USE_PTY_SEARCH
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #elif defined(PUCC_PTYD)
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #undef USE_PTY_SEARCH
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
-#elif (defined(sun) && defined(SVR4)) || defined(_ALL_SOURCE) || defined(__CYGWIN__)
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
+#elif (defined(sun) && defined(SVR4)) || defined(_ALL_SOURCE) || defined(__CYGWIN__) || defined(__midipix__)
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #undef USE_PTY_SEARCH
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #elif defined(__OpenBSD__)
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #undef USE_PTY_SEARCH
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
diff -ru xterm-331.orig/xtermcap.h xterm-331/xtermcap.h
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
--- xterm-331.orig/xtermcap.h	2013-06-23 17:34:37.000000000 +0200
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
+++ xterm-331/xtermcap.h	2018-02-07 21:15:52.683355025 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
@@ -60,6 +60,8 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #ifdef HAVE_NCURSES_CURSES_H
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #include <ncurses/curses.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
+#elif defined(__midipix__)
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
+#include <ncurses/ncurses.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #else
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #include <curses.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #endif
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
diff -ru xterm-331.orig/xterm.h xterm-331/xterm.h
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
--- xterm-331.orig/xterm.h	2017-12-26 12:37:37.000000000 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
+++ xterm-331/xterm.h	2018-02-07 21:10:07.983160836 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
@@ -162,7 +162,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #define HAVE_UTMP_UT_XTIME 1
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #endif
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
-#if defined(linux) || defined(__CYGWIN__)
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
+#if defined(linux) || defined(__CYGWIN__) || defined(__midipix__)
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #define USE_LASTLOG
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #define HAVE_LASTLOG_H
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #define USE_STRUCT_LASTLOG
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
@@ -199,7 +199,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #define USE_TTY_GROUP
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #endif
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
-#if defined(__CYGWIN__)
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
+#if defined(__CYGWIN__) || defined(__midipix__)
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #define HAVE_NCURSES_TERM_H 1
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #endif
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
diff -ru xterm-331.orig/xterm_io.h xterm-331/xterm_io.h
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
--- xterm-331.orig/xterm_io.h	2017-05-18 23:15:14.000000000 +0200
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
+++ xterm-331/xterm_io.h	2018-02-07 21:06:56.362468943 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
@@ -74,6 +74,10 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #define USE_TERMIOS
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #endif
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
+#define USE_POSIX_TERMIOS
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
+
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #ifdef __SCO__
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #define USE_TERMIOS
Lucio Andrés Illanes Albornoz (arab, vxp) 1d380c
 #ifndef _SVID3